summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-03-23 04:04:22 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-03-23 04:04:22 +0000
commit6f334d10a27ef5eb06043c5d76ba9ca42d085a4a (patch)
tree9cbadc1da07e2e8072c66c5cc0755ac6ee14be1f
parent9679ecebb924ac15e6a021d902adefaa13e076f6 (diff)
Hack to make physmem something almost reasonable, if for some reason
the G4 decides to claim that no real memory exists in the machine, even though memory is available. Real memory size is aliased to available. Take this out if a real cause is determined.
-rw-r--r--sys/arch/powerpc/powerpc/ofw_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/ofw_machdep.c b/sys/arch/powerpc/powerpc/ofw_machdep.c
index a5011a20e46..572ec2497fb 100644
--- a/sys/arch/powerpc/powerpc/ofw_machdep.c
+++ b/sys/arch/powerpc/powerpc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.13 2000/03/20 07:05:53 rahnds Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.14 2000/03/23 04:04:21 rahnds Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -92,6 +92,10 @@ ofw_mem_regions(memp, availp)
<= 0)
panic("no memory?");
*memp = OFmem;
+ /* HACK */
+ if (OFmem[0].size == 0) {
+ *memp = OFavail;
+ }
*availp = OFavail;
}