Page MenuHomeFreeBSD

Enable use of a global shared page for RISC-V.
ClosedPublic

Authored by jhb on Nov 6 2018, 9:09 PM.
Tags
None
Referenced Files
F103207383: D17875.diff
Fri, Nov 22, 6:11 AM
Unknown Object (File)
Mon, Oct 28, 1:39 PM
Unknown Object (File)
Sep 21 2024, 8:12 PM
Unknown Object (File)
Sep 19 2024, 8:47 PM
Unknown Object (File)
Sep 18 2024, 12:34 AM
Unknown Object (File)
Sep 17 2024, 5:05 AM
Unknown Object (File)
Sep 10 2024, 10:48 PM
Unknown Object (File)
Sep 8 2024, 11:49 AM
Subscribers

Details

Summary

machine/vmparam.h already defines the SHAREDPAGE constant. This
change just enables it for ELF executables. The only use of the shared
page currently is to hold the signal trampoline.

Test Plan
  • ran my 'sigframe' test program which raises nested signals that I use to test signal frame unwinding under gdb under gdb and verified the signal trampoline was executing out of the shared page rather than the stack.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sys/riscv/riscv/elf_machdep.c
114 ↗(On Diff #50084)

Copy-pasted from arm64, it seems. Looks like we should delete both definitions.

This revision is now accepted and ready to land.Nov 6 2018, 9:14 PM
jhb marked an inline comment as done.Nov 6 2018, 9:15 PM
jhb added inline comments.
sys/riscv/riscv/elf_machdep.c
114 ↗(On Diff #50084)

This is a separate question that won't be committed. However, I think we should just be able to delete this extra brand info? It also doesn't belong in arm64.

This revision was automatically updated to reflect the committed changes.