2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-22 22:08:47 +01:00

fix regression

This commit is contained in:
Abdur-Rahman Mansoor 2024-08-01 12:18:37 -04:00
parent d36f13f7af
commit 365ccac9eb

View File

@ -1087,13 +1087,14 @@ proc sqytdbl_write stdcall, pci:dword, y:word, cmd:dword
mov esi, [cmd]
mov ecx, dword [esi + SQ_ENTRY.cdw0]
shr ecx, 16 ; Get CID
mov ebx, ecx
imul ebx, sizeof.NVM_QUEUE_ENTRY
add ebx, eax
imul ecx, sizeof.SQ_ENTRY
lea edx, [edx + ecx]
mov ecx, dword [eax + ecx + NVMQCMD.mutex_ptr]
push ecx
stdcall memcpyd, edx, esi, sizeof.SQ_ENTRY / 4
pop ecx
invoke MutexLock
mov ecx, dword [ebx + NVMQCMD.mutex_ptr]
;invoke MutexLock
mov esi, [pci]
movzx eax, word [edi + NVM_QUEUE_ENTRY.tail]