From cb7d244531953ce8664faba69ed2869e2458807d Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 5 Aug 1997 17:45:57 +0000 Subject: kentry proto is in the libsa.h change var name --- sys/arch/i386/stand/boot/kentry.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'sys/arch/i386/stand/boot') 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 #include +#include #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; } -- cgit v1.2.3