2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2025-01-03 03:15:56 +01:00

fix: reduce timeout value and initialize ACQ and ASQ addresses properly

This commit is contained in:
Abdur-Rahman Mansoor 2024-08-05 17:22:53 -04:00
parent 4ac6818567
commit 511db105a9

View File

@ -784,6 +784,7 @@ proc nvme_init stdcall, pci:dword
mov eax, dword [edi + NVM_QUEUE_ENTRY.cq_ptr]
invoke GetPhysAddr
mov dword [esi + NVME_MMIO.ACQ], eax
mov dword [esi + NVME_MMIO.ACQ + 4], 0
if __DEBUG__
push esi
mov esi, [pci]
@ -795,6 +796,7 @@ proc nvme_init stdcall, pci:dword
mov eax, dword [edi + NVM_QUEUE_ENTRY.sq_ptr]
invoke GetPhysAddr
mov dword [esi + NVME_MMIO.ASQ], eax
mov dword [esi + NVME_MMIO.ASQ + 4], 0
if __DEBUG__
push esi
mov esi, [pci]
@ -1049,7 +1051,7 @@ proc nvme_poll stdcall, pci:dword
@@:
inc ecx
cmp ecx, 0xffffffff
cmp ecx, 0x10000000
je @f
xor eax, eax
inc eax