From cab7472f2230c7d6c473ee08a7f8076221773fed Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 29 Aug 1997 22:27:00 +0000 Subject: ifdef partition table and NT s# w/ BEMBR --- sys/arch/i386/stand/biosboot/Makefile | 3 ++- sys/arch/i386/stand/biosboot/biosboot.S | 20 +++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/stand/biosboot/Makefile b/sys/arch/i386/stand/biosboot/Makefile index 78f87ed9bb2..95b2afeef59 100644 --- a/sys/arch/i386/stand/biosboot/Makefile +++ b/sys/arch/i386/stand/biosboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.9 1997/08/13 04:03:28 mickey Exp $ +# $OpenBSD: Makefile,v 1.10 1997/08/29 22:26:59 mickey Exp $ PROG= biosboot SRCS= biosboot.S @@ -22,4 +22,5 @@ ${PROG}: $(OBJS) $(DPADD) .include CPPFLAGS+=-DLOADADDR=$(LOADADDR) -DBOOTMAGIC=$(BOOTMAGIC) -DBOOTREL=$(BOOTREL) +CPPFLAGS+=-DBEMBR #AFLAGS+=-Wa,-a diff --git a/sys/arch/i386/stand/biosboot/biosboot.S b/sys/arch/i386/stand/biosboot/biosboot.S index bf9c238ec4f..807d78c534c 100644 --- a/sys/arch/i386/stand/biosboot/biosboot.S +++ b/sys/arch/i386/stand/biosboot/biosboot.S @@ -1,4 +1,4 @@ -/* $OpenBSD: biosboot.S,v 1.18 1997/08/29 21:16:48 mickey Exp $ */ +/* $OpenBSD: biosboot.S,v 1.19 1997/08/29 22:26:58 mickey Exp $ */ .file "bootbios.S" @@ -312,16 +312,22 @@ Lchr: Gdtr: .word . - 1b .long BOOTREL + 1b - .globl _block_table + .globl _block_table, _block_count +_block_count: + .byte BLKCNT /* entries in _block_table */ _block_table: .word 0 /* cylinder/sector */ .byte 0 /* head */ .byte 0 /* nsect */ - . = _block_table + BLKCNT*4 - .globl _block_count -_block_count: - .byte BLKCNT /* entries in _block_table */ + # . = _block_table + BLKCNT*4 + +#ifdef BEMBR + . = 0x1b8 + .space 4, 0 /* NT registry offset from James C. Cortilier III */ + . = DOSPARTOFF + .globl _partitions + /* throw in a partition in case we are block0 as well */ . = DOSPARTOFF .globl _partitions /* throw in a partition in case we are block0 as well */ @@ -335,7 +341,7 @@ _partitions: .long 0,0 .byte 0,0,0,0,0,0,0,0 .long 0,0 - +#endif . = 0x200 - 2 /* a little signature */ .word DOSMBR_SIGNATURE -- cgit v1.2.3