summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2013-02-13 21:21:34 +0000
committermartynas <martynas@openbsd.org>2013-02-13 21:21:34 +0000
commit66b13d024ff17ec68cf88ef76f459217dddf3e31 (patch)
treeba666de74c23f14ee7bb0a6b77908dc8b4d91a5d /sys
parent- Detect and correct stale GDT user code segment limit caused (diff)
downloadwireguard-openbsd-66b13d024ff17ec68cf88ef76f459217dddf3e31.tar.xz
wireguard-openbsd-66b13d024ff17ec68cf88ef76f459217dddf3e31.zip
De-magic IOM_END like in the rest of machdep.c. OK miod@.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 2e0ed22d293..17e0c0cd999 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.519 2012/12/04 20:51:10 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.520 2013/02/13 21:21:34 martynas Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -3251,8 +3251,8 @@ init386(paddr_t first_avail)
printf("physload: ");
#endif
kb = atop(KERNTEXTOFF - KERNBASE);
- if (kb > atop(0x100000)) {
- paddr_t lim = atop(0x100000);
+ if (kb > atop(IOM_END)) {
+ paddr_t lim = atop(IOM_END);
#ifdef DEBUG
printf(" %x-%x (<16M)", lim, kb);
#endif