mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-21 20:58:13 +01:00
make sure interrupts are enabled in PCI header
This commit is contained in:
parent
18b76f70b2
commit
3d78f22409
@ -875,6 +875,13 @@ proc nvme_init stdcall, pci:dword
|
||||
|
||||
push ebx esi edi
|
||||
mov esi, dword [pci]
|
||||
|
||||
; Check the PCI header to see if interrupts are disabled, if so
|
||||
; we have to re-enable them
|
||||
invoke PciRead16, dword [esi + pcidev.bus], dword [esi + pcidev.devfn], PCI_header00.command
|
||||
and eax, not (1 shl 10)
|
||||
invoke PciWrite16, dword [esi + pcidev.bus], dword [esi + pcidev.devfn], PCI_header00.command, eax
|
||||
|
||||
mov edi, dword [esi + pcidev.io_addr]
|
||||
|
||||
if 0
|
||||
|
Loading…
Reference in New Issue
Block a user