RISC-V: Linux ABI

System Internals / glibc - Palmer Dabbelt [dabbelt.com] - 29 January 2018 18:37 EST

Linux-specific code that is required for maintaining ABI compatibility. This doesn't contain the actual system call interface, that is split out in order to avoid having a patch that's too big.

2018-01-29 Palmer Dabbelt

- sysdeps/riscv/nptl/pthread-offsets.h: New file.
- sysdeps/riscv/nptl/pthreaddef.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
- sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
- sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
- sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
- sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
- sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
- sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
- sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
- sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.

7f33b09c65 RISC-V: Linux ABI
ChangeLog | 22 ++++
sysdeps/riscv/nptl/pthread-offsets.h | 24 ++++
sysdeps/riscv/nptl/pthreaddef.h | 32 ++++++
sysdeps/unix/sysv/linux/riscv/bits/fcntl.h | 62 ++++++++++
sysdeps/unix/sysv/linux/riscv/bits/mman.h | 36 ++++++
sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h | 32 ++++++
sysdeps/unix/sysv/linux/riscv/dl-cache.h | 75 +++++++++++++
sysdeps/unix/sysv/linux/riscv/flush-icache.c | 73 ++++++++++++
sysdeps/unix/sysv/linux/riscv/getcontext.S | 77 +++++++++++++
sysdeps/unix/sysv/linux/riscv/init-first.c | 58 ++++++++++
sysdeps/unix/sysv/linux/riscv/libc-vdso.h | 38 +++++++
sysdeps/unix/sysv/linux/riscv/makecontext.c | 78 +++++++++++++
sysdeps/unix/sysv/linux/riscv/readelflib.c | 96 ++++++++++++++++
sysdeps/unix/sysv/linux/riscv/register-dump.h | 63 +++++++++++
.../unix/sysv/linux/riscv/rv64/jmp_buf-macros.h | 53 +++++++++
sysdeps/unix/sysv/linux/riscv/setcontext.S | 114 +++++++++++++++++++
sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h | 28 +++++
sysdeps/unix/sysv/linux/riscv/swapcontext.S | 125 +++++++++++++++++++++
sysdeps/unix/sysv/linux/riscv/sys/cachectl.h | 32 ++++++
sysdeps/unix/sysv/linux/riscv/sys/procfs.h | 114 +++++++++++++++++++
sysdeps/unix/sysv/linux/riscv/sys/ucontext.h | 110 ++++++++++++++++++
sysdeps/unix/sysv/linux/riscv/sys/user.h | 23 ++++
sysdeps/unix/sysv/linux/riscv/ucontext-macros.h | 49 ++++++++
sysdeps/unix/sysv/linux/riscv/ucontext_i.sym | 31 +++++
24 files changed, 1445 insertions(+)

Upstream: sourceware.org


  • Share