summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-04 19:58:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-09-04 19:58:15 +0000
commit1de10a03d0fc2f83019fc527e7df9b85ad76c4c5 (patch)
tree69525a089002bb639a59c88f47aacc44d9c00ff8
parent9f7e712cd8726a3c36b8237925cdd29c8be164da (diff)
support boot API version number
-rw-r--r--sys/arch/i386/include/biosvar.h4
-rw-r--r--sys/arch/i386/stand/libsa/exec_i386.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h
index ef2e95dd1e4..7f0660f7569 100644
--- a/sys/arch/i386/include/biosvar.h
+++ b/sys/arch/i386/include/biosvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosvar.h,v 1.9 1997/09/03 04:33:57 weingart Exp $ */
+/* $OpenBSD: biosvar.h,v 1.10 1997/09/04 19:58:12 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -35,6 +35,8 @@
#ifndef __BIOS_VAR_H__
#define __BIOS_VAR_H__
+#define BOOT_APIVER 0x00000001
+
#define BOOTC_CHECK 0x00
#define BOOTC_BOOT 0x01
#define BOOTC_GETENV 0x02
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c
index eb855e7ab96..04eb535f10d 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.13 1997/08/22 20:13:43 mickey Exp $ */
+/* $OpenBSD: exec_i386.c,v 1.14 1997/09/04 19:58:14 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -59,7 +59,7 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym)
x->a_entry, x->a_trsize, x->a_drsize);
printf("/bsd(%x,%x,%x,%x,%x,%x,%x)\n",
- howto, bootdev, 0, round_to_size(esym),
+ howto, bootdev, BOOT_APIVER, round_to_size(esym),
BIOS_vars.bios_extmem, BIOS_vars.bios_cnvmem,
(int)&BIOS_vars);
getchar();
@@ -72,7 +72,7 @@ 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))
- startaddr)(howto, bootdev, 0, round_to_size(esym),
+ startaddr)(howto, bootdev, BOOT_APIVER, round_to_size(esym),
BIOS_vars.bios_extmem, BIOS_vars.bios_cnvmem,
(int)&BIOS_vars);
/* not reached */