2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-23 06:18:47 +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 ; 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