Rich Felker
2c124e13bd
stdint.h: derive limits from __LONG_MAX, use common fast16 types
...
the bits file is retained, but as a single generic version, to allow
for the unlikely future possibility of letting a new arch define
something differently.
2024-05-07 09:17:51 -04:00
Rich Felker
e709a6f07a
sys/reg.h: derive __WORDSIZE from __LONG_MAX
...
this removes an otherwise-unnecessary bits header from most archs,
replacing it with an empty generic version.
2024-05-07 09:08:31 -04:00
Rich Felker
29b216b2f2
unistd.h: derive ILP32/LP64 macros from __LONG_MAX instead of arch bits
2024-05-07 09:01:47 -04:00
Rich Felker
0dfa1d8caa
unify bits/stat.h for all archs sharing a common definition
...
future archs should not define their own bits/stat.h but use this
generic one.
2024-05-07 08:58:45 -04:00
Rich Felker
ef600888d2
align aarch64, riscv64, loongarch64 stat structure padding type
...
this change is purely to document that they are the same in
preparation to remove the arch-specific headers for these archs and
replace them with a generic version that matches riscv32 and can be
shared by these and all future archs.
2024-05-07 08:55:55 -04:00
wanghongliang
8d9d266573
loongarch64: add new syscall numbers
2024-02-29 17:33:45 -05:00
Rich Felker
8d852cdacd
loongarch64: remove getrlimit/setrlimit syscall numbers
...
these are not supported by the kernel for new archs; prlimit64
replaces them.
2024-02-29 17:32:27 -05:00
wanghongliang
13cd64af31
loongarch64: remove ptrace.h macros
2024-02-29 17:30:11 -05:00
Hongliang Wang
ec325b3828
add loongarch64 user.h structs; adjust elf_fpreg_t and ELF_NFPREG
...
user_regs_struct and user_fp_struct were missing from the initial
commit of the port.
the union type for elf_fpreg_t and the new value of ELF_NFPREG are
made consistent with glibc.
2024-02-26 15:22:58 -05:00
wanghongliang
f2c9350543
add loongarch64 signal.h register index macros
2024-02-26 15:22:54 -05:00
Hongliang Wang
522bd54eda
add loongarch64 port
...
Author: Xiaojuan Zhai <zhaixiaojuan@loongson.cn>
Author: Meidan Li <limeidan@loongson.cn>
Author: Guoqi Chen <chenguoqi@loongson.cn>
Author: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
Author: Fan peng <fanpeng@loongson.cn>
Author: Jiantao Shan <shanjiantao@loongson.cn>
Author: Xuhui Qiang <qiangxuhui@loongson.cn>
Author: Jingyun Hua <huajingyun@loongson.cn>
Author: Liu xue <liuxue@loongson.cn>
Author: Hongliang Wang <wanghongliang@loongson.cn>
2024-02-16 09:33:10 -05:00