rename ext_disk_read to BIOS_int13h_ext_read

This commit is contained in:
2025-09-17 18:54:59 -04:00
parent 918e94689f
commit 831d45c33c
4 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ endstruc
; uint32_t lba, ; uint32_t lba,
; uint16_t count, uint8_t drive_num) ; uint16_t count, uint8_t drive_num)
ALIGN 4, db 0x90 ALIGN 4, db 0x90
read_disk_raw: BIOS_int13h_ext_read:
__CDECL16_PROC_ENTRY __CDECL16_PROC_ENTRY
.func: .func:
push LBAPkt_t_size ; len push LBAPkt_t_size ; len

View File

@@ -133,7 +133,7 @@ main:
; uint8_t read_stage2_raw(uint16_t buf_segment, uint16_t buf_offset, ; uint8_t read_stage2_raw(uint16_t buf_segment, uint16_t buf_offset,
; uint32_t lba, ; uint32_t lba,
; uint16_t count, uint16_t drive_num) ; uint16_t count, uint16_t drive_num)
call read_disk_raw call BIOS_int13h_ext_read
add sp, 0xC add sp, 0xC
.goto_vbr: .goto_vbr:
cmp word [VBR_ENTRY + 0x1FE], 0xAA55 cmp word [VBR_ENTRY + 0x1FE], 0xAA55

View File

@@ -208,7 +208,7 @@ ReadMbrData:
push word [bp + 6] ; offset = dst push word [bp + 6] ; offset = dst
push __STAGE2_SEGMENT ; this segment push __STAGE2_SEGMENT ; this segment
call read_disk_raw call BIOS_int13h_ext_read
add sp, 0xC add sp, 0xC
.check_sig: .check_sig:
mov bx, [bp + 6] mov bx, [bp + 6]
@@ -250,7 +250,7 @@ ReadVbrData:
push word [bp + 6] ; offset = dst push word [bp + 6] ; offset = dst
push __STAGE2_SEGMENT ; this segment push __STAGE2_SEGMENT ; this segment
call read_disk_raw call BIOS_int13h_ext_read
add sp, 0xC add sp, 0xC
; vbr (with fat bpb/ebpb) is at the buffer now ; vbr (with fat bpb/ebpb) is at the buffer now
.check_sig: .check_sig:

View File

@@ -114,7 +114,7 @@ main:
; uint8_t read_stage2_raw(uint16_t buf_segment, uint16_t buf_offset, ; uint8_t read_stage2_raw(uint16_t buf_segment, uint16_t buf_offset,
; uint32_t lba, ; uint32_t lba,
; uint16_t count, uint16_t drive_num) ; uint16_t count, uint16_t drive_num)
call read_disk_raw call BIOS_int13h_ext_read
add sp, 0xC add sp, 0xC
.enter_stage2: .enter_stage2:
mov dl, byte [bp - 2] ; byte boot_drive mov dl, byte [bp - 2] ; byte boot_drive