From fdc1ec4de6ab5cc09fe8bf0942283c6b378d8af2 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 14 Apr 1997 10:58:31 +0000 Subject: [PATCH] add signature! fake partition 0 for floppy until fdisk(8) has -f flag. max 16 BLKCNT --- sys/arch/i386/stand/biosboot/biosboot.S | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/sys/arch/i386/stand/biosboot/biosboot.S b/sys/arch/i386/stand/biosboot/biosboot.S index 9beb090a717..bc86305a1a2 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.4 1997/04/11 19:09:59 weingart Exp $ */ +/* $OpenBSD: biosboot.S,v 1.5 1997/04/14 10:58:31 deraadt Exp $ */ .file "bootbios.S" @@ -12,7 +12,7 @@ #define data32 .byte 0x66 /* Better use 32, 48 does not seem to compile */ -#define BLKCNT 32 +#define BLKCNT 16 #if 0 #ifdef DEBUG #define BLKCNT 32 @@ -298,7 +298,20 @@ _block_table: _block_count: .byte BLKCNT /* entries in _block_table */ - . = 0x200 - 4 + /* partitions 0 */ + . = 446 + .globl _partitions +_partitions: + .word 0x0080 + .word 0x0001 + .word 0x01a6 + .word 0x4f12 + .word 0x0000 + .word 0x0000 + .word 0x0b40 + .word 0x0000 + .word 0x0000 + + . = 0x200 - 2 /* a little signature */ - .ascii "boot" - + .word 0xaa55 -- 2.20.1