summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-03 22:34:54 +0000
committermiod <miod@openbsd.org>2011-04-03 22:34:54 +0000
commitb4fe817bce2e71c52bdccfe24b60ac7202c6d038 (patch)
tree7c302a8310b8f9e98fb52a1d3b08f34077711863 /sys
parentAdd a consistency check for the value returned by pmap_extract() against the (diff)
downloadwireguard-openbsd-b4fe817bce2e71c52bdccfe24b60ac7202c6d038.tar.xz
wireguard-openbsd-b4fe817bce2e71c52bdccfe24b60ac7202c6d038.zip
Enable the use of all the memory found on IP27 and IP30 kernels. Committed
from an IP35 system with half its memory outside the dma_constraint range.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sgi/sgi/ip30_machdep.c15
-rw-r--r--sys/arch/sgi/sgi/sginode.c25
2 files changed, 2 insertions, 38 deletions
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c
index 9ea9d423b70..5447e2632c2 100644
--- a/sys/arch/sgi/sgi/ip30_machdep.c
+++ b/sys/arch/sgi/sgi/ip30_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip30_machdep.c,v 1.44 2010/09/09 10:59:02 syuu Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.45 2011/04/03 22:34:54 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -137,19 +137,6 @@ ip30_setup()
* Add memory not obtained through ARCBios.
*/
if (start >= IP30_MEMORY_BASE + IP30_MEMORY_ARCBIOS_LIMIT) {
- /*
- * XXX Temporary until there is a way to cope with
- * XXX xbridge ATE shortage.
- */
- if (end > (2UL << 30)) {
-#if 0
- physmem += atop(end - (2UL << 30));
-#endif
- end = 2UL << 30;
- }
- if (end <= start)
- continue;
-
memrange_register(atop(start), atop(end),
0, VM_FREELIST_DEFAULT);
}
diff --git a/sys/arch/sgi/sgi/sginode.c b/sys/arch/sgi/sgi/sginode.c
index d778d6576b2..2c3a450794b 100644
--- a/sys/arch/sgi/sgi/sginode.c
+++ b/sys/arch/sgi/sgi/sginode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sginode.c,v 1.20 2010/09/17 00:04:30 miod Exp $ */
+/* $OpenBSD: sginode.c,v 1.21 2011/04/03 22:34:54 miod Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
*
@@ -505,17 +505,6 @@ kl_add_memory_ip27(int16_t nasid, int16_t *sizes, unsigned int cnt)
physmem += atop(32 << 20);
}
- /*
- * XXX Temporary until there is a way to cope with
- * XXX xbridge ATE shortage.
- */
- if (fp >= atop(2UL << 30)) {
-#if 0
- physmem += lp - fp;
-#endif
- continue;
- }
-
if (memrange_register(fp, lp,
~(atop(1UL << kl_n_shift) - 1),
lp <= atop(2UL << 30) ?
@@ -566,17 +555,6 @@ kl_add_memory_ip35(int16_t nasid, int16_t *sizes, unsigned int cnt)
physmem += atop(64 << 20);
}
- /*
- * XXX Temporary until there is a way to cope with
- * XXX xbridge ATE shortage.
- */
- if (fp >= atop(2UL << 30)) {
-#if 0
- physmem += lp - fp;
-#endif
- goto skip;
- }
-
if (memrange_register(fp, lp,
~(atop(1UL << kl_n_shift) - 1),
lp <= atop(2UL << 30) ?
@@ -590,7 +568,6 @@ kl_add_memory_ip35(int16_t nasid, int16_t *sizes, unsigned int cnt)
ptoa(np) >> 20);
}
}
-skip:
basepa += 1UL << 30; /* 1 GB */
}
}