From 1de10a03d0fc2f83019fc527e7df9b85ad76c4c5 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 4 Sep 1997 19:58:15 +0000 Subject: support boot API version number --- sys/arch/i386/include/biosvar.h | 4 +++- sys/arch/i386/stand/libsa/exec_i386.c | 6 +++--- 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 */ -- cgit v1.2.3