2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2026-03-09 12:53:24 +00:00

fix embarassing bugs

This commit is contained in:
2024-06-03 16:49:42 -04:00
parent 09aa423d8d
commit 4041563623

View File

@@ -125,6 +125,7 @@ proc nvme_identify stdcall, pci:dword, slot:dword, nsid:dword, dptr:dword, cid:w
mov eax, [dptr]
mov dword [esi + SQ_ENTRY.dptr], eax
movzx eax, [cid]
shl eax, 16
or dword [esi + SQ_ENTRY.cdw0], ADM_CMD_IDENTIFY
or dword [esi + SQ_ENTRY.cdw0], eax
mov al, [cns]
@@ -358,8 +359,8 @@ proc nvme_init stdcall, pci:dword
invoke AllocPage
test eax, eax
jz .exit_fail
; pci:dword, nsid:dword, dptr:dword, cid:word, cns:byte
stdcall nvme_identify, [pci], 0, eax, 0, CNS_IDCS
; pci:dword, slot:dword, nsid:dword, dptr:dword, cid:word, cns:byte
stdcall nvme_identify, [pci], 0, 0, eax, 0, CNS_IDCS
xor eax, eax
inc eax