forked from pool/syslinux
21 lines
398 B
Diff
21 lines
398 B
Diff
|
diff --git a/core/localboot.inc b/core/localboot.inc
|
||
|
index 1fe3102..30f34fc 100644
|
||
|
--- a/core/localboot.inc
|
||
|
+++ b/core/localboot.inc
|
||
|
@@ -33,6 +33,15 @@ local_boot:
|
||
|
cmp ax,-1
|
||
|
je .int18
|
||
|
|
||
|
+ cmp ax,-2
|
||
|
+ jne .load
|
||
|
+
|
||
|
+ mov al,[DriveNumber]
|
||
|
+ cmp al,80h
|
||
|
+ mov al,80h
|
||
|
+ jnz .load
|
||
|
+ inc ax
|
||
|
+.load:
|
||
|
; Load boot sector from the specified BIOS device and jump to it.
|
||
|
mov dl,al
|
||
|
xor dh,dh
|