mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2024-11-10 02:20:27 +01:00
more code removal
This commit is contained in:
parent
39dcfd2edc
commit
835840231f
@ -567,14 +567,7 @@ proc alloc_dptr stdcall, ns:dword, prps_ptr:dword, numsectors:dword, prp_list_pt
|
||||
|
||||
push ebx esi edi
|
||||
mov esi, [ns]
|
||||
|
||||
; the pointer to our PRP list (virtual), needed so
|
||||
; that the caller can free the PRP list afterwards
|
||||
mov edi, [prp_list_ptr]
|
||||
mov dword [edi], 0
|
||||
|
||||
mov edi, [prps_ptr]
|
||||
mov dword [edi + 4], 0 ; PRP2 default value
|
||||
mov eax, [buf]
|
||||
invoke GetPhysAddr
|
||||
mov dword [edi], eax
|
||||
@ -665,8 +658,10 @@ proc nvme_readwrite stdcall, ns:dword, buf:dword, start_sector:qword, numsectors
|
||||
mov eax, [numsectors_ptr]
|
||||
mov eax, dword [eax]
|
||||
DEBUGF DBG_INFO, "buf: %x, start_sector: %u:%u, numsectors: %u\n", [buf], [start_sector + 4], [start_sector], eax
|
||||
mov dword [ebx + 4], 0 ; PRP2 entry (0 by default)
|
||||
mov dword [ebx + 8], edx ; command type (read or write)
|
||||
mov dword [ebx + 12], eax ; save original numsectors value
|
||||
mov dword [ebx + 16], 0 ; virtual pointer to PRP2 PRP list (not allocated by default)
|
||||
|
||||
mov ecx, ebx
|
||||
add ecx, 16
|
||||
|
Loading…
Reference in New Issue
Block a user