diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-05 17:45:57 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-05 17:45:57 +0000 |
commit | cb7d244531953ce8664faba69ed2869e2458807d (patch) | |
tree | ded30dd5dd0487dff7ddc7c23e7106e2d0b6a4d8 /sys/arch/i386/stand/boot | |
parent | 5497dc71005477a845921fd1b021494da4e01c84 (diff) |
kentry proto is in the libsa.h
change var name
Diffstat (limited to 'sys/arch/i386/stand/boot')
-rw-r--r-- | sys/arch/i386/stand/boot/kentry.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/boot/kentry.c b/sys/arch/i386/stand/boot/kentry.c index 6a8be5eda5d..09e7814d8bc 100644 --- a/sys/arch/i386/stand/boot/kentry.c +++ b/sys/arch/i386/stand/boot/kentry.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kentry.c,v 1.1 1997/08/02 22:23:08 mickey Exp $ */ +/* $OpenBSD: kentry.c,v 1.2 1997/08/05 17:45:55 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -34,23 +34,35 @@ #include <sys/param.h> #include <machine/biosvar.h> +#include <libsa.h> #include "cmd.h" int -kentry(cmd, data) +kentry(cmd, arg) u_int cmd; - void *data; + u_int arg; { switch(cmd) { case BOOTC_CHECK: return 0; case BOOTC_BOOT: + exit(); return 0; case BOOTC_GETENV: + switch(arg) { + case BOOTV_BOOTDEV: + return bootdev; + case BOOTV_BDGMTRY: + return bootdev_geometry; + case BOOTV_CONSDEV: + return consdev; + case BOOTV_APMCONN: + return (int)&apminfo; + } return 0; case BOOTC_SETENV: return 0; + default: + return -1; } - - return -1; } |