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:
parent
4ac6818567
commit
511db105a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user