svn commit: r340228 - head/sys/riscv/riscv

John Baldwin jhb at FreeBSD.org
Wed Nov 7 18:27:47 UTC 2018


Author: jhb
Date: Wed Nov  7 18:27:43 2018
New Revision: 340228
URL: https://svnweb.freebsd.org/changeset/base/340228

Log:
  Enable use of a global shared page for RISC-V.
  
  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.
  
  Reviewed by:	markj, kib
  Sponsored by:	DARPA
  Differential Revision:	https://reviews.freebsd.org/D17875

Modified:
  head/sys/riscv/riscv/elf_machdep.c

Modified: head/sys/riscv/riscv/elf_machdep.c
==============================================================================
--- head/sys/riscv/riscv/elf_machdep.c	Wed Nov  7 18:12:18 2018	(r340227)
+++ head/sys/riscv/riscv/elf_machdep.c	Wed Nov  7 18:27:43 2018	(r340228)
@@ -83,10 +83,12 @@ struct sysentvec elf64_freebsd_sysvec = {
 	.sv_setregs	= exec_setregs,
 	.sv_fixlimit	= NULL,
 	.sv_maxssiz	= NULL,
-	.sv_flags	= SV_ABI_FREEBSD | SV_LP64,
+	.sv_flags	= SV_ABI_FREEBSD | SV_LP64 | SV_SHP,
 	.sv_set_syscall_retval = cpu_set_syscall_retval,
 	.sv_fetch_syscall_args = cpu_fetch_syscall_args,
 	.sv_syscallnames = syscallnames,
+	.sv_shared_page_base = SHAREDPAGE,
+	.sv_shared_page_len = PAGE_SIZE,
 	.sv_schedtail	= NULL,
 	.sv_thread_detach = NULL,
 	.sv_trap	= NULL,


More information about the svn-src-all mailing list