diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-03-23 04:04:22 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-03-23 04:04:22 +0000 |
commit | 6f334d10a27ef5eb06043c5d76ba9ca42d085a4a (patch) | |
tree | 9cbadc1da07e2e8072c66c5cc0755ac6ee14be1f | |
parent | 9679ecebb924ac15e6a021d902adefaa13e076f6 (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.c | 6 |
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; } |