summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2007-05-09 11:23:36 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2007-05-09 11:23:36 +0000
commit21cccc0bcca7cb984d889e4c3e034069d14d7e6d (patch)
tree60ac735b83d620c52f719816eaebc9922cfde7e0
parent955d81904a8c94e88b8325d7ed7d48c8585977e9 (diff)
Truncate the addresses for the deadbeef values so that they don't need
to be page aligned and can contain more "noise". From mickey art@ ok
-rw-r--r--sys/uvm/uvm_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_init.c b/sys/uvm/uvm_init.c
index 2f33534d941..448baed5021 100644
--- a/sys/uvm/uvm_init.c
+++ b/sys/uvm/uvm_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_init.c,v 1.14 2007/04/12 21:47:46 miod Exp $ */
+/* $OpenBSD: uvm_init.c,v 1.15 2007/05/09 11:23:35 art Exp $ */
/* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */
/*
@@ -156,14 +156,14 @@ uvm_init()
* reserve some unmapped space for malloc/pool use after free usage
*/
#ifdef DEADBEEF0
- kvm_start = DEADBEEF0 - PAGE_SIZE;
+ kvm_start = trunc_page(DEADBEEF0) - PAGE_SIZE;
if (uvm_map(kernel_map, &kvm_start, 3 * PAGE_SIZE,
NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE,
UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)))
panic("uvm_init: cannot reserve dead beef @0x%x\n", DEADBEEF0);
#endif
#ifdef DEADBEEF1
- kvm_start = DEADBEEF1 - PAGE_SIZE;
+ kvm_start = trunc_page(DEADBEEF1) - PAGE_SIZE;
if (uvm_map(kernel_map, &kvm_start, 3 * PAGE_SIZE,
NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(UVM_PROT_NONE,
UVM_PROT_NONE, UVM_INH_NONE, UVM_ADV_RANDOM, UVM_FLAG_FIXED)))