fix passing stage2 wrong data for boot drive
This commit is contained in:
@@ -361,9 +361,7 @@ NewLine_cstr:
|
|||||||
BootTarget_str:
|
BootTarget_str:
|
||||||
db "BOOT BIN"
|
db "BOOT BIN"
|
||||||
boot_drive_ptr:
|
boot_drive_ptr:
|
||||||
db 0x00
|
dw 0x0000
|
||||||
stage2_resb_1:
|
|
||||||
db 0x00
|
|
||||||
partition_offset_ptr:
|
partition_offset_ptr:
|
||||||
dw 0x0000
|
dw 0x0000
|
||||||
|
|
||||||
|
|||||||
@@ -136,8 +136,8 @@ main:
|
|||||||
ERROR VBR_ERROR_NO_SIGNATURE ; no signature present in stage2
|
ERROR VBR_ERROR_NO_SIGNATURE ; no signature present in stage2
|
||||||
|
|
||||||
.sig_ok:
|
.sig_ok:
|
||||||
mov si, [bp - 4]
|
mov si, word [bp - 4]
|
||||||
mov dx, [bp - 2]
|
mov dl, byte [bp - 2]
|
||||||
jmp 0:0x7E00
|
jmp 0:0x7E00
|
||||||
|
|
||||||
; ###############
|
; ###############
|
||||||
|
|||||||
Reference in New Issue
Block a user