mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-18 03:16:09 +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]
|
mov eax, dword [edi + NVM_QUEUE_ENTRY.cq_ptr]
|
||||||
invoke GetPhysAddr
|
invoke GetPhysAddr
|
||||||
mov dword [esi + NVME_MMIO.ACQ], eax
|
mov dword [esi + NVME_MMIO.ACQ], eax
|
||||||
|
mov dword [esi + NVME_MMIO.ACQ + 4], 0
|
||||||
if __DEBUG__
|
if __DEBUG__
|
||||||
push esi
|
push esi
|
||||||
mov esi, [pci]
|
mov esi, [pci]
|
||||||
@ -795,6 +796,7 @@ proc nvme_init stdcall, pci:dword
|
|||||||
mov eax, dword [edi + NVM_QUEUE_ENTRY.sq_ptr]
|
mov eax, dword [edi + NVM_QUEUE_ENTRY.sq_ptr]
|
||||||
invoke GetPhysAddr
|
invoke GetPhysAddr
|
||||||
mov dword [esi + NVME_MMIO.ASQ], eax
|
mov dword [esi + NVME_MMIO.ASQ], eax
|
||||||
|
mov dword [esi + NVME_MMIO.ASQ + 4], 0
|
||||||
if __DEBUG__
|
if __DEBUG__
|
||||||
push esi
|
push esi
|
||||||
mov esi, [pci]
|
mov esi, [pci]
|
||||||
@ -1049,7 +1051,7 @@ proc nvme_poll stdcall, pci:dword
|
|||||||
|
|
||||||
@@:
|
@@:
|
||||||
inc ecx
|
inc ecx
|
||||||
cmp ecx, 0xffffffff
|
cmp ecx, 0x10000000
|
||||||
je @f
|
je @f
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
inc eax
|
inc eax
|
||||||
|
Loading…
Reference in New Issue
Block a user