use partition entry size constant

This commit is contained in:
2025-09-17 16:24:45 -04:00
parent 59bc1afb7c
commit 4a27e09872

View File

@@ -109,7 +109,7 @@ main:
mov al, byte [bx + PartEntry_t.attributes] mov al, byte [bx + PartEntry_t.attributes]
test al, 0x80 ; 0x80 == 1000_0000b test al, 0x80 ; 0x80 == 1000_0000b
jnz main.active_found jnz main.active_found
add bx, 0x10 ; add 16 bytes to offset add bx, PartEntry_t_size ; add 16 bytes to offset
loop main.find_active_L0 loop main.find_active_L0
ERROR MBR_ERROR_NO_NO_BOOT_PART ERROR MBR_ERROR_NO_NO_BOOT_PART