summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pool.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-04-12 21:47:45 +0000
committermiod <miod@openbsd.org>2007-04-12 21:47:45 +0000
commit97bf7b323998c96cb350d8aba65263930e4263bb (patch)
tree15521008592bc039cbf38b1ee655a297b34fc4e2 /sys/kern/subr_pool.c
parentFaster signal delivery on i386/MP. (diff)
downloadwireguard-openbsd-97bf7b323998c96cb350d8aba65263930e4263bb.tar.xz
wireguard-openbsd-97bf7b323998c96cb350d8aba65263930e4263bb.zip
Allow machine-dependant overrides for the ``deadbeef'' sentinel values,
and make sure that nothing can ever be mapped at theses addresses. Only i386 overrides the default for now. From mickey@, ok art@ miod@
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r--sys/kern/subr_pool.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c
index 6d08f849656..15b812ecdaf 100644
--- a/sys/kern/subr_pool.c
+++ b/sys/kern/subr_pool.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_pool.c,v 1.49 2007/04/11 12:10:42 art Exp $ */
+/* $OpenBSD: subr_pool.c,v 1.50 2007/04/12 21:47:45 miod Exp $ */
/* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */
/*-
@@ -100,7 +100,11 @@ struct pool_item {
#ifdef DIAGNOSTIC
int pi_magic;
#endif
+#ifdef DEADBEEF1
+#define PI_MAGIC DEADBEEF1
+#else
#define PI_MAGIC 0xdeafbeef
+#endif
/* Other entries use only this list entry */
TAILQ_ENTRY(pool_item) pi_list;
};