diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-04 21:53:36 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-04 21:53:36 +0000 |
commit | 987e748b6caf7fcf4d52e3fbd18dd3759f30a628 (patch) | |
tree | acf62c838eb9117040f989decfd5a33161cf6f09 /sys/arch/i386/stand/libsa/exec_i386.c | |
parent | afc368b5d0bcce534668b7dea37266dd60c25c56 (diff) |
remember boot device geometry
Diffstat (limited to 'sys/arch/i386/stand/libsa/exec_i386.c')
-rw-r--r-- | sys/arch/i386/stand/libsa/exec_i386.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c index 3478aca1364..5e5f8e3ea0c 100644 --- a/sys/arch/i386/stand/libsa/exec_i386.c +++ b/sys/arch/i386/stand/libsa/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.9 1997/07/18 00:50:53 mickey Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.10 1997/08/04 21:53:35 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -37,9 +37,10 @@ #include <sys/param.h> #include <sys/exec.h> #include <sys/reboot.h> +#include <machine/biosvar.h> #include "libsa.h" -dev_t bootdev; +int bootdev, bootdev_geometry; #define round_to_size(x) (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1)) @@ -65,9 +66,9 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) printf("entry point at 0x%x\n", (int)startaddr); /* stack and the gung is ok at this point, so, no need for asm setup */ - (*(int __attribute__((noreturn))(*)(int,int,int,int,int,int,int)) + (*(int __attribute__((noreturn))(*)(int,int,int,int,int,int,int,int)) startaddr)(howto, bootdev, 0, round_to_size(esym), - extmem, cnvmem, (int)&apminfo); + extmem, cnvmem, (int)&apminfo, (int)&kentry); /* not reached */ } |