diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-15 08:00:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-15 08:00:45 +0000 |
commit | 33afcc0a7e61d54e7d334b8847aa89efae20e293 (patch) | |
tree | 99059381592c29d76fcd36d4869deb89c3a1cd0a /sys/arch | |
parent | f90256b4512908e2f5b9ce0299b183ea35fdc4b6 (diff) |
partition table in biosboot too. Max 28 BLKCNT, too
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/stand/biosboot/biosboot.S | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/sys/arch/i386/stand/biosboot/biosboot.S b/sys/arch/i386/stand/biosboot/biosboot.S index e86eeb79401..f6d3ad24826 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.6 1997/04/14 19:09:10 mickey Exp $ */ +/* $OpenBSD: biosboot.S,v 1.7 1997/04/15 08:00:44 deraadt Exp $ */ .file "bootbios.S" @@ -12,12 +12,25 @@ #define data32 .byte 0x66 /* Better use 32, 48 does not seem to compile */ +#define BLKCNT 28 /* Max without colliding with the partition table */ +#if 0 +#ifdef DEBUG #define BLKCNT 32 +#else +#define BLKCNT 48 +#endif +#endif #define BOOTSEG 0x07c0 /* boot loaded here */ #define BOOTSTACK 0xfffc /* stack starts here */ #define ZMAGIC 0x0b01 /* ZMAGIC */ +/* + * Partition table values + */ +BOOTABLE= 0x80 # value of boot_ind, means bootable partition +OPENBSDPART= 0xA6 # OpenBSD partition type + #ifdef DEBUG #define DBGMSG(msg) \ movb $msg, %al; \ @@ -291,7 +304,20 @@ _block_table: _block_count: .byte BLKCNT /* entries in _block_table */ - . = 0x200 - 4 + . = 446 + .globl _partitions + /* throw in a partition in case we are block0 as well */ + /* flag, head, sec, cyl, typ, ehead, esect, ecyl, start, len */ +_partitions: + .byte BOOTABLE, 0, 1, 0,OPENBSDPART, 255, 255, 255 + .long 0,50000 + .byte 0,0,0,0,0,0,0,0 + .long 0,0 + .byte 0,0,0,0,0,0,0,0 + .long 0,0 + .byte 0,0,0,0,0,0,0,0 + .long 0,0 + + . = 0x200 - 2 /* a little signature */ - .ascii "boot" - + .word 0xaa55 |