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
Unknown Object (File)
Jan 11 2024, 10:46 PM
Unknown Object (File)
Dec 23 2023, 12:20 AM
Unknown Object (File)
Aug 13 2023, 9:46 PM
Unknown Object (File)
Jul 27 2023, 9:13 PM
Unknown Object (File)
May 25 2023, 1:00 AM
Unknown Object (File)
May 20 2023, 6:36 AM
Unknown Object (File)
Apr 4 2023, 8:48 PM
Unknown Object (File)
Dec 23 2022, 8:03 PM
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.