11 Commits
Author SHA1 Message Date
Stefan O'RearandRich Felker 377c363fb5 configure: enable riscv32 port 2024-02-29 16:59:06 -05:00
Stefan O'RearandRich Felker b28c44de8c riscv32: add thread support
Identical to riscv64 except for stack offsets in clone.
2024-02-29 16:36:55 -05:00
Stefan O'RearandRich Felker c34a8eedff riscv32: add setjmp/longjmp and sigreturn
Largely copied from riscv64 but required recalculation of offsets.
2024-02-29 16:36:55 -05:00
Stefan O'RearandRich Felker 11eee89e14 riscv32: add dlsym
Identical to riscv64.
2024-02-29 16:36:55 -05:00
Stefan O'RearandRich Felker b4f7b2ca35 riscv32: add fenv and math
These are identical to riscv64.
2024-02-29 16:36:55 -05:00
Stefan O'RearandRich Felker 01d9fe4d9f riscv32: add arch headers
These are mostly copied from riscv64. _Addr and _Reg had to become int
to match compiler-controlled parts of the ABI (result type of sizeof,
etc.). There is no kernel stat struct; the userspace stat matches
glibc in the sizes and offsets of all fields (including glibc's
__dev_t __pad1). The jump buffer is 12 words larger to account for 12
saved double-precision floats; additionally it should be 64-bit
aligned to save doubles.

The syscall list was significantly revised by deleting all time32 and
pre-statx syscalls, and renaming several syscalls that have different
names depending on __BITS_PER_LONG, notably mmap2 and _llseek.

futex was added as an alias to futex_time64 since it is widely used by
software which does not pass time arguments.
2024-02-29 16:35:30 -05:00
Stefan O'RearandRich Felker 2c887f24da riscv: fall back to syscall __riscv_flush_icache
Matches glibc behavior and fixes a case where we could fall off the
function without returning a value.
2024-02-25 20:35:24 -05:00
Stefan O'RearandRich Felker 12a757b321 only fallback to gettimeofday/settimeofday syscalls if they exist
riscv32 and future architectures only provide the clock_ functions.
2022-05-01 23:25:21 -04:00
Stefan O'RearandRich Felker 41149ea8c7 only use getrlimit/setrlimit syscalls if they exist
riscv32 and future architectures only provide prlimit64.
2022-05-01 23:25:21 -04:00
Stefan O'RearandRich Felker 8910efd0e4 don't remap internal-use syscall macros to nonexistent time32 syscalls
riscv32 and future architectures lack the _time32 variants entirely,
so don't try to use their numbers. instead, reflect that they're not
present.
2022-04-27 08:45:33 -04:00
Stefan O'RearandRich Felker 03f71251e6 remove ARMSUBARCH relic from configure
commit 0f814a4e57 removed its use.
2022-04-27 08:45:18 -04:00