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

fix: queue wrapping conditions

This commit is contained in:
2024-08-11 14:37:51 -04:00
parent 408a1c7f30
commit 96fcd601b3

View File

@@ -1135,7 +1135,7 @@ proc sqytdbl_write stdcall, pci:dword, y:word, cmd:dword
mov ax, word [edi + NVM_QUEUE_ENTRY.tail]
inc ax
cmp ax, NVM_ASQS
jb @f
jbe @f
xor ax, ax
@@:
@@ -1203,7 +1203,7 @@ proc consume_cq_entries stdcall, pci:dword, queue:dword
je .end
inc ecx
cmp ecx, NVM_ACQS
jb @f
jbe @f
xor ecx, ecx
mov word [esi + NVM_QUEUE_ENTRY.head], cx