forked from pool/syslinux
315b19d9eb
OBS-URL: https://build.opensuse.org/package/show/system:install:head/syslinux?expand=0&rev=52
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
|