From 5eec23025f66c3d371f79c752d0fcc3c1fd89d8e Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 28 Sep 1998 21:39:11 +0000 Subject: Argh, I don't believe how much time I wasted looking for this... Bytes of extended memory = (extkb * 1024), not (extkb + 1024) --- sys/boot/i386/libi386/biosmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot') diff --git a/sys/boot/i386/libi386/biosmem.c b/sys/boot/i386/libi386/biosmem.c index 8322654052b9..1535e052eab7 100644 --- a/sys/boot/i386/libi386/biosmem.c +++ b/sys/boot/i386/libi386/biosmem.c @@ -45,7 +45,7 @@ getextmem(void) extkb = v86.eax & 0xffff; /* Set memtop to actual top or 16M, whicheve is less */ - memtop = min((0x100000 + (extkb + 1024)), (16 * 1024 * 1024)); + memtop = min((0x100000 + (extkb * 1024)), (16 * 1024 * 1024)); return(extkb); } -- cgit v1.3