diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-02 22:23:10 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-02 22:23:10 +0000 |
commit | fcb3ea8b795f063c35e6750479f7cf80d2f6d5c9 (patch) | |
tree | 36b04c97a9aeb7eeb6620381cc385a979a7aae78 /sys/arch/i386/stand/boot | |
parent | 75ccbf0f226deb4dcc38f0d1a350030b1796a117 (diff) |
move kentry() in boot
Diffstat (limited to 'sys/arch/i386/stand/boot')
-rw-r--r-- | sys/arch/i386/stand/boot/Makefile | 4 | ||||
-rw-r--r-- | sys/arch/i386/stand/boot/kentry.c | 56 |
2 files changed, 58 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/boot/Makefile b/sys/arch/i386/stand/boot/Makefile index c6c17f9ab84..c236bdbae8e 100644 --- a/sys/arch/i386/stand/boot/Makefile +++ b/sys/arch/i386/stand/boot/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.8 1997/07/17 23:30:31 mickey Exp $ +# $OpenBSD: Makefile,v 1.9 1997/08/02 22:23:07 mickey Exp $ PROG= boot -SRCS= srt0.S boot.c cmd.c conf.c +SRCS= srt0.S boot.c cmd.c kentry.c conf.c #AFLAGS+=-Wa,-R # AFLAGS+=-Wa,-a LD=ld diff --git a/sys/arch/i386/stand/boot/kentry.c b/sys/arch/i386/stand/boot/kentry.c new file mode 100644 index 00000000000..6a8be5eda5d --- /dev/null +++ b/sys/arch/i386/stand/boot/kentry.c @@ -0,0 +1,56 @@ +/* $OpenBSD: kentry.c,v 1.1 1997/08/02 22:23:08 mickey Exp $ */ + +/* + * Copyright (c) 1997 Michael Shalayeff + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by Michael Shalayeff. + * 4. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + */ + +#include <sys/param.h> +#include <machine/biosvar.h> +#include "cmd.h" + +int +kentry(cmd, data) + u_int cmd; + void *data; +{ + switch(cmd) { + case BOOTC_CHECK: + return 0; + case BOOTC_BOOT: + return 0; + case BOOTC_GETENV: + return 0; + case BOOTC_SETENV: + return 0; + } + + return -1; +} |