mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
Support getting the boot drive from the BIOS or the value in the BPB.
svn path=/trunk/; revision=15233
This commit is contained in:
@@ -73,7 +73,7 @@ SectorsPerTrack dw 18
|
||||
NumberOfHeads dw 2
|
||||
HiddenSectors dd 0
|
||||
TotalSectorsBig dd 0
|
||||
BootDrive db 0
|
||||
BootDrive db 0xff
|
||||
Reserved db 0
|
||||
ExtendSig db 29h
|
||||
SerialNumber dd 00000000h
|
||||
@@ -89,6 +89,9 @@ main:
|
||||
mov es,ax ; Make ES correct
|
||||
|
||||
|
||||
cmp BYTE [BYTE bp+BootDrive],BYTE 0xff ; If they have specified a boot drive then use it
|
||||
jne GetDriveParameters
|
||||
|
||||
mov [BYTE bp+BootDrive],dl ; Save the boot drive
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user