Skip to content

0.27.1: riscv64; a frame chain without process_vm_readv - #59

Merged
Sunrisepeak merged 2 commits into
mainfrom
feat/riscv64
Nov 23, 2026
Merged

Sunrisepeak merged 2 commits into
mainfrom
feat/riscv64

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

riscv64 joins x86_64, aarch64 and i386: the ecall gate over the architecture-independent table shared with aarch64 (no renameat: renameat2 without flags), the thread pointer tp with the storage beginning at it, _start setting the global pointer, the generic clone order, the asm-generic O_DIRECTORY/O_NOFOLLOW, a handler's record without a restorer (every such record is built by okl::handler_action), the vDSO clock, the context's pc/sp/s0 with the frame record below the frame pointer, and riscv_flush_icache after published instructions (the maintenance the kernel offers as a call).

Where process_vm_readv answers ENOSYS (a kernel without CROSS_MEMORY_ATTACH; qemu-user, measured with 8.2.2) a frame is read through a pipe of the read's own, so samples and fault reports keep their chains.

tools/arch-check.sh (formerly word32-check.sh) builds the implementation standalone and runs tests/arch/runs.cpp for i386 natively and riscv64 under qemu-user. Measured locally: every check holds on both, including a sample holding the frames above the work.

The riscv64 gate (ecall) beside aarch64's over the one architecture-independent
table, renameat2 where the table has no renameat, the thread pointer tp with the
storage beginning at it, _start setting the global pointer, the generic clone
order, the asm-generic O_DIRECTORY and O_NOFOLLOW, a handler's record without a
restorer (okl::handler_action builds every such record), the vDSO clock, the
context's pc, sp and s0 with the frame record below the frame pointer, and
riscv_flush_icache after publishing instructions. Where process_vm_readv answers
ENOSYS a frame is read through a pipe of the read's own. tools/arch-check.sh
builds and runs tests/arch/runs.cpp for i386 and, under qemu-user, riscv64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant