summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2019-01-19 04:07:13 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2019-01-19 04:07:13 +0000
commitc339f588a79bc103184fdb196b3323f769c6330b (patch)
treef6391d5b3193a933383a556a3e87628f4b18d479 /sys/arch/amd64/include
parentbc89c5c97b934e3ec3451bd7f5c7088f96cd4f56 (diff)
Finish randominzing remaining layers of pmap_kernel
An earlier diff moved the top level page, this diff finishes the lower layers. New pages are allocated for the existing hiererchy (which thus benefit from random placement from pmemrange/etc). Existing managed pages are returned to uvm (a small number of bootstrap pages are not returned as they are allocated in locore0 and thus aren't managed). ok deraadt
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/pmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h
index 35584d0a365..e1d29f1e8b8 100644
--- a/sys/arch/amd64/include/pmap.h
+++ b/sys/arch/amd64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.71 2019/01/11 06:25:06 mlarkin Exp $ */
+/* $OpenBSD: pmap.h,v 1.72 2019/01/19 04:07:12 mlarkin Exp $ */
/* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
@@ -381,6 +381,7 @@ extern const long nbpd[], nkptpmax[];
void map_tramps(void); /* machdep.c */
paddr_t pmap_bootstrap(paddr_t, paddr_t);
void pmap_randomize(void);
+void pmap_randomize_level(pd_entry_t *, int);
boolean_t pmap_clear_attrs(struct vm_page *, unsigned long);
static void pmap_page_protect(struct vm_page *, vm_prot_t);
void pmap_page_remove (struct vm_page *);