Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib use bios' idea of the basemem size a...
details: https://anonhg.NetBSD.org/src/rev/88cab8d0c295
branches: trunk
changeset: 482799:88cab8d0c295
user: dbj <dbj%NetBSD.org@localhost>
date: Tue Feb 22 07:45:04 2000 +0000
description:
use bios' idea of the basemem size and create the kernel stack
at the top of it instead of hard coding 0x90000
diffstat:
sys/arch/i386/stand/lib/exec.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r e7eab91c1ba1 -r 88cab8d0c295 sys/arch/i386/stand/lib/exec.c
--- a/sys/arch/i386/stand/lib/exec.c Tue Feb 22 06:47:27 2000 +0000
+++ b/sys/arch/i386/stand/lib/exec.c Tue Feb 22 07:45:04 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.14 1999/09/07 18:27:58 ross Exp $ */
+/* $NetBSD: exec.c,v 1.15 2000/02/22 07:45:04 dbj Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -94,6 +94,7 @@
u_long marks[MARK_MAX];
struct btinfo_symtab btinfo_symtab;
u_long extmem;
+ u_long basemem;
#ifdef XMS
u_long xmsmem;
physaddr_t origaddr = loadaddr;
@@ -116,6 +117,7 @@
BI_ADD(&btinfo_console, BTINFO_CONSOLE, sizeof(struct btinfo_console));
extmem = getextmem();
+ basemem = getbasemem();
#ifdef XMS
if ((getextmem1() == 0) && (xmsmem = checkxms())) {
@@ -195,7 +197,7 @@
boot_argv[2] = vtophys(bootinfo); /* old cyl offset */
/* argv[3] below */
boot_argv[4] = extmem;
- boot_argv[5] = getbasemem();
+ boot_argv[5] = basemem;
close(fd);
@@ -241,7 +243,8 @@
btinfo_symtab.esym = marks[MARK_END];
BI_ADD(&btinfo_symtab, BTINFO_SYMTAB, sizeof(struct btinfo_symtab));
- startprog(marks[MARK_ENTRY], BOOT_NARGS, boot_argv, 0x90000);
+ startprog(marks[MARK_ENTRY], BOOT_NARGS, boot_argv,
+ i386_trunc_page(basemem*1024));
panic("exec returned");
out:
Home |
Main Index |
Thread Index |
Old Index