From 6f71fdc8f39041503e33b51d2f7cdfeecb38c620 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 1 Nov 1999 20:51:12 +0000 Subject: add it back in --- sys/arch/i386/i386/machdep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 8545f1ad6b8..f6227e677da 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.118 1999/11/01 20:50:44 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.119 1999/11/01 20:51:11 deraadt Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -315,15 +315,16 @@ cpu_startup() msgbufmapped = 1; /* Boot arguments are in page 1 */ - if (bootapiver >= 2) { + if (bootapiver & BAPIV_VECTOR) { pa = (vm_offset_t)bootargv; for (i = 0; i < btoc(bootargc); i++, pa += NBPG) pmap_enter(pmap_kernel(), (vm_offset_t)((caddr_t)bootargp + i * NBPG), pa, VM_PROT_READ|VM_PROT_WRITE, TRUE, VM_PROT_READ|VM_PROT_WRITE); + bios_getopt(); } else - bootargp = NULL; + panic("/boot is too old: upgrade"); printf(version); startrtclock(); -- cgit v1.2.3