summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2009-08-29 15:27:33 +0000
committerkettenis <kettenis@openbsd.org>2009-08-29 15:27:33 +0000
commit0cc0a221ce90e87d3f6191cb0c30b53c3a0ff467 (patch)
tree7d081b354ba70938372ad9b752a65bfeda38e325
parentaccept ``common'' messages (including system explusive) on the (diff)
downloadwireguard-openbsd-0cc0a221ce90e87d3f6191cb0c30b53c3a0ff467.tar.xz
wireguard-openbsd-0cc0a221ce90e87d3f6191cb0c30b53c3a0ff467.zip
The intention is to map the dvma map at a fixed address, so specify
UVM_FLAG_FIXED. Makes sparc boot with option KVA_GUARDPAGES. ok miod@, tested by deraadt@
-rw-r--r--sys/arch/sparc/sparc/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 3aba61d12dc..3ee479bbd41 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.123 2009/08/11 19:17:17 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.124 2009/08/29 15:27:33 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -205,7 +205,7 @@ cpu_startup()
vm_map_max(kernel_map) - dvma_base,
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
- UVM_ADV_NORMAL, 0)))
+ UVM_ADV_NORMAL, UVM_FLAG_FIXED)))
panic("startup: can not steal dvma map");
}
#endif