2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-22 13:58:47 +01:00

another bug fix (2)

This commit is contained in:
Abdur-Rahman Mansoor 2024-07-30 15:09:49 -04:00
parent 25ee3eb491
commit 6a8ab65661

View File

@ -54,20 +54,24 @@ proc START c, reason:dword
.loop:
add esi, sizeof.pcidev
push esi ebx
push ebx esi
stdcall device_is_compat, esi
test eax, eax
jz @f
jz .pop
stdcall nvme_init, esi
test eax, eax
jz @f
jz .pop
pop esi ebx
stdcall add_nvme_disk, esi
jmp .next
@@:
pop ebx esi
.pop:
pop esi ebx
.next:
inc ebx
cmp ebx, dword [pcidevs_len]
jne .loop
stdcall add_nvme_disk, esi
invoke RegService, my_service, service_proc
ret