treat partition end lba as inclusive
This commit is contained in:
1 parent
b32a763d17
commit
b45ee48c90
1 file changed
+3
-3
@@ -247,12 +247,12 @@ STAGE2_GPT_ENTRY_ADDR equ 0x1a
|
||||
; Load partition LBA end.
|
||||
mov ecx, [si + 0x28]
|
||||
mov edx, [si + 0x2c]
|
||||
; Assert that the end LBA is greater than the start LBA, so we have at least one sector to load.
|
||||
; TODO: is the end LBA inclusive?
|
||||
; Assert that the end LBA is greater than or equal to the start LBA, so we have at least one
|
||||
; sector to load (end LBA is inclusive).
|
||||
or edx, edx
|
||||
jnz .stage2_end_lba_ok
|
||||
cmp eax, ecx
|
||||
jae .panic
|
||||
ja .panic
|
||||
.stage2_end_lba_ok:
|
||||
|
||||
mov bx, 0x8200
|
||||
|
||||
Reference in new issue
Block a user