correct some field sizes

This commit is contained in:
2024-10-18 07:57:42 -04:00
parent 48f0de8f7b
commit 94c2a1626d
2 changed files with 10 additions and 7 deletions

View File

@@ -98,13 +98,16 @@ read_disk_raw:
mov ax, [bp + 12]
mov word [bx + LBAPkt_t.xfer_size], ax
mov eax, [bp + 8]
mov eax, dword [bp + 8]
mov dword [bx + LBAPkt_t.lower_lba], eax
; upper_lba is zero from kmemset
; TODO: possiblly support >32bit LBA addresses in the future, this limits us to 4GiB
mov ax, [bp + 6]
mov word [bx + LBAPkt_t.offset], ax
movzx ax, byte [bp + 4]
mov ax, [bp + 4]
mov word [bx + LBAPkt_t.segment], ax
xor ax, ax