mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-18 19:28:13 +01:00
another bug fix (2)
This commit is contained in:
parent
25ee3eb491
commit
6a8ab65661
@ -54,20 +54,24 @@ proc START c, reason:dword
|
|||||||
|
|
||||||
.loop:
|
.loop:
|
||||||
add esi, sizeof.pcidev
|
add esi, sizeof.pcidev
|
||||||
push esi ebx
|
push ebx esi
|
||||||
stdcall device_is_compat, esi
|
stdcall device_is_compat, esi
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz @f
|
jz .pop
|
||||||
stdcall nvme_init, esi
|
stdcall nvme_init, esi
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz @f
|
jz .pop
|
||||||
|
pop esi ebx
|
||||||
|
stdcall add_nvme_disk, esi
|
||||||
|
jmp .next
|
||||||
|
|
||||||
@@:
|
.pop:
|
||||||
pop ebx esi
|
pop esi ebx
|
||||||
|
|
||||||
|
.next:
|
||||||
inc ebx
|
inc ebx
|
||||||
cmp ebx, dword [pcidevs_len]
|
cmp ebx, dword [pcidevs_len]
|
||||||
jne .loop
|
jne .loop
|
||||||
stdcall add_nvme_disk, esi
|
|
||||||
invoke RegService, my_service, service_proc
|
invoke RegService, my_service, service_proc
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user