mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-12-22 22:08:47 +01:00
fix PRP2 alignment
This commit is contained in:
parent
a8aafb415f
commit
48fef9b8d7
@ -589,9 +589,8 @@ proc alloc_dptr stdcall, ns:dword, prps_ptr:dword, numsectors:dword, prp_list_pt
|
|||||||
|
|
||||||
; set PRP2
|
; set PRP2
|
||||||
mov eax, dword [edi]
|
mov eax, dword [edi]
|
||||||
mov ecx, eax
|
and eax, not (PAGE_SIZE - 1)
|
||||||
and ecx, PAGE_SIZE - 1
|
add eax, PAGE_SIZE
|
||||||
add eax, ecx
|
|
||||||
mov dword [edi + 4], eax
|
mov dword [edi + 4], eax
|
||||||
jmp .success
|
jmp .success
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user