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:
parent
d36f13f7af
commit
365ccac9eb
@ -1087,13 +1087,14 @@ proc sqytdbl_write stdcall, pci:dword, y:word, cmd:dword
|
|||||||
mov esi, [cmd]
|
mov esi, [cmd]
|
||||||
mov ecx, dword [esi + SQ_ENTRY.cdw0]
|
mov ecx, dword [esi + SQ_ENTRY.cdw0]
|
||||||
shr ecx, 16 ; Get CID
|
shr ecx, 16 ; Get CID
|
||||||
|
mov ebx, ecx
|
||||||
|
imul ebx, sizeof.NVM_QUEUE_ENTRY
|
||||||
|
add ebx, eax
|
||||||
imul ecx, sizeof.SQ_ENTRY
|
imul ecx, sizeof.SQ_ENTRY
|
||||||
lea edx, [edx + ecx]
|
lea edx, [edx + ecx]
|
||||||
mov ecx, dword [eax + ecx + NVMQCMD.mutex_ptr]
|
|
||||||
push ecx
|
|
||||||
stdcall memcpyd, edx, esi, sizeof.SQ_ENTRY / 4
|
stdcall memcpyd, edx, esi, sizeof.SQ_ENTRY / 4
|
||||||
pop ecx
|
mov ecx, dword [ebx + NVMQCMD.mutex_ptr]
|
||||||
invoke MutexLock
|
;invoke MutexLock
|
||||||
|
|
||||||
mov esi, [pci]
|
mov esi, [pci]
|
||||||
movzx eax, word [edi + NVM_QUEUE_ENTRY.tail]
|
movzx eax, word [edi + NVM_QUEUE_ENTRY.tail]
|
||||||
|
Loading…
Reference in New Issue
Block a user