corrected a few instances of accessing boot_drive incorrectly after the location change
This commit is contained in:
@@ -257,7 +257,7 @@ NextCluster:
|
|||||||
add eax, ecx ; fat_sector + first_fat_sector
|
add eax, ecx ; fat_sector + first_fat_sector
|
||||||
mov dword [si + FAT32_NextClusterData_t.fat_sector], eax
|
mov dword [si + FAT32_NextClusterData_t.fat_sector], eax
|
||||||
.load_fat_table:
|
.load_fat_table:
|
||||||
mov ax, word [boot_drive]
|
movzx ax, byte [boot_drive]
|
||||||
push ax
|
push ax
|
||||||
|
|
||||||
mov ax, 0x1
|
mov ax, 0x1
|
||||||
@@ -321,7 +321,6 @@ ClusterToLBA:
|
|||||||
.error:
|
.error:
|
||||||
ERROR STAGE2_FAT32_CLS2LBA_CF
|
ERROR STAGE2_FAT32_CLS2LBA_CF
|
||||||
|
|
||||||
; bp - 2 - byte boot_drive
|
|
||||||
; uint8_t ReadFATCluster(uint16_t seg, uint16_t offset, uint32_t cluster)
|
; uint8_t ReadFATCluster(uint16_t seg, uint16_t offset, uint32_t cluster)
|
||||||
ALIGN 4, db 0x90
|
ALIGN 4, db 0x90
|
||||||
ReadFATCluster:
|
ReadFATCluster:
|
||||||
@@ -329,7 +328,7 @@ ReadFATCluster:
|
|||||||
.func:
|
.func:
|
||||||
print_string ReadFATCluster_info
|
print_string ReadFATCluster_info
|
||||||
|
|
||||||
mov ax, word [boot_drive]
|
movzx ax, byte [boot_drive]
|
||||||
push ax
|
push ax
|
||||||
|
|
||||||
mov ax, 0x1 ; count = 1
|
mov ax, 0x1 ; count = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user