Some BIOSs insist on patching the Bios Parameter Block for some drives

(e.g. LS-120).  Make room for this.
This commit is contained in:
ws 1998-11-11 16:46:38 +00:00
parent fa7460bdff
commit 18f9174133
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: start_bootsect.S,v 1.6 1998/10/15 15:28:22 ws Exp $ */
/* $NetBSD: start_bootsect.S,v 1.7 1998/11/11 16:46:38 ws Exp $ */
/* BIOS bootsector startup
parts from netbsd:sys/arch/i386/boot/start.S
@ -97,6 +97,9 @@ pacify_braindead_bios:
data32
ljmp $0x7c0, $start1
/* some BIOSs insist on patching the BPB, esp. on LS120 drives */
. = _C_LABEL(boot1) + 0x25
start1:
# set up %ds
movl %cs, %ax