2
0
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:
Abdur-Rahman Mansoor 2024-07-12 14:03:19 -04:00
parent a8aafb415f
commit 48fef9b8d7

View File

@ -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