aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:31:01 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-03-16 11:31:01 +0000
commit6f1fe3305a2be0a1395569b2ea5f56a93e491ae0 (patch)
treea4dc6f513504def0942459570f83fe798336d04e /sys/sparc64
parentc1c120b2cb8ece606766642dc20bff611fa89d22 (diff)
downloadsrc-6f1fe3305a2be0a1395569b2ea5f56a93e491ae0.tar.gz
src-6f1fe3305a2be0a1395569b2ea5f56a93e491ae0.zip
amd64: Add md process flags and first P_MD_PTI flag.
PTI mode for the process pmap on exec is activated iff P_MD_PTI is set. On exec, the existing vmspace can be reused only if pti mode of the pmap matches the P_MD_PTI flag of the process. Add MD cpu_exec_vmspace_reuse() callback for exec_new_vmspace() which can vetoed reuse of the existing vmspace. MFC note: md_flags change struct proc KBI. Reviewed by: jhb, markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D19514
Notes
Notes: svn path=/head/; revision=345227
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/vm_machdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c
index d3966910888f..a4a316e0bc86 100644
--- a/sys/sparc64/sparc64/vm_machdep.c
+++ b/sys/sparc64/sparc64/vm_machdep.c
@@ -373,6 +373,13 @@ cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg)
fp->fr_local[1] = (u_long)arg;
}
+bool
+cpu_exec_vmspace_reuse(struct proc *p __unused, vm_map_t map __unused)
+{
+
+ return (true);
+}
+
int
is_physical_memory(vm_paddr_t addr)
{