From fa7ae6e098d3d17d48d838c8a480ebd6ec4fecb8 Mon Sep 17 00:00:00 2001 From: rahnds Date: Thu, 23 Mar 2000 04:04:21 +0000 Subject: [PATCH] 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. --- sys/arch/powerpc/powerpc/ofw_machdep.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.20.1