summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-09-10 18:49:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-09-10 18:49:46 +0000
commitb3c8c11717dc2654a849620f8f2671da4b4042fd (patch)
tree03f29ae358d0dbf5a8ac49aa7b0a310d1b0ad6b1 /sys/arch/hppa64
parentf9bdf407d1c2a9694df07c9cf1d03a399b8d3c7e (diff)
Introduce a md pmap hook, pmap_remove_holes(), which is supposed to mark
the holes a MMU may have from a given vm_map. This will be automagically invoked for newly created vmspaces. On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents mmap(2) hints which would end up being in the hole to be accepted as valid, causing unexpected signals when the process tries to access the hole (since pmap can not fill the hole anyway). Unfortunately, the logic mmap() uses to pick a valid address for anonymous mappings needs work, as it will only try to find an address higher than the hint, which causes all mmap() with a hint in the hole to fail on vax. This will be improved later.
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/include/pmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa64/include/pmap.h b/sys/arch/hppa64/include/pmap.h
index 1014076b7e2..c6f2167d8d9 100644
--- a/sys/arch/hppa64/include/pmap.h
+++ b/sys/arch/hppa64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.2 2007/09/10 18:49:45 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -83,6 +83,7 @@ extern struct pmap kernel_pmap_store;
#define pmap_proc_iflush(p,va,len) /* nothing */
#define pmap_unuse_final(p) /* nothing */
+#define pmap_remove_holes(map) do { /* nothing */ } while (0)
void pmap_bootstrap(vaddr_t);
boolean_t pmap_changebit(struct vm_page *, pt_entry_t, pt_entry_t);