summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/memprobe.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-22 20:13:45 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-08-22 20:13:45 +0000
commit98100e95950a0ee3f62ac533d1d945a5e50cbe79 (patch)
tree58af5ff237a7793f0c25950298635a7edc5b78ef /sys/arch/i386/stand/libsa/memprobe.c
parent89697efdd4d2c2f615145d8dd494d2359b531201 (diff)
put values into BIOS_vars so kernel will get 'em soon
Diffstat (limited to 'sys/arch/i386/stand/libsa/memprobe.c')
-rw-r--r--sys/arch/i386/stand/libsa/memprobe.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/stand/libsa/memprobe.c b/sys/arch/i386/stand/libsa/memprobe.c
index 728c162e269..ba89600a367 100644
--- a/sys/arch/i386/stand/libsa/memprobe.c
+++ b/sys/arch/i386/stand/libsa/memprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memprobe.c,v 1.9 1997/08/12 19:12:09 mickey Exp $ */
+/* $OpenBSD: memprobe.c,v 1.10 1997/08/22 20:13:44 mickey Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -43,8 +43,9 @@ memprobe()
{
int ram;
- __asm __volatile(DOINT(0x12) : "=a" (cnvmem) :: "%ecx", "%edx", "cc");
- cnvmem &= 0xffff;
+ __asm __volatile(DOINT(0x12) : "=a" (BIOS_vars.bios_cnvmem)
+ :: "%ecx", "%edx", "cc");
+ BIOS_vars.bios_cnvmem &= 0xffff;
/* probe extended memory
*
@@ -60,7 +61,7 @@ memprobe()
}
printf("Found %d KB extended memory.\n", ram-1024);
- extmem = ram - 1024;
+ BIOS_vars.bios_extmem = ram - 1024;
}
/* addrprobe(kloc): Probe memory at address kloc * 1024.