mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-11-10 02:20:27 +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
|
||||
mov eax, dword [edi]
|
||||
mov ecx, eax
|
||||
and ecx, PAGE_SIZE - 1
|
||||
add eax, ecx
|
||||
and eax, not (PAGE_SIZE - 1)
|
||||
add eax, PAGE_SIZE
|
||||
mov dword [edi + 4], eax
|
||||
jmp .success
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user