diff options
author | Marvin Borner | 2020-04-16 19:06:33 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-16 19:06:33 +0200 |
commit | 4014a36377ff69f6433e7b0af2144bc3a7d29ca7 (patch) | |
tree | 9440ac3749d406c6df9917d4bb3a19de6ea99655 /src/kernel/pci/pci.c | |
parent | fc26e84ef8c6255926811fe639e3e466b756e581 (diff) |
Many fix attempts for the divide by zero exception
Diffstat (limited to 'src/kernel/pci/pci.c')
-rw-r--r-- | src/kernel/pci/pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/pci/pci.c b/src/kernel/pci/pci.c index 7ba48ab..57bfe94 100644 --- a/src/kernel/pci/pci.c +++ b/src/kernel/pci/pci.c @@ -1,5 +1,6 @@ -#include <kernel/pci/pci.h> #include <stdint.h> +#include <kernel/system.h> +#include <kernel/pci/pci.h> #include <kernel/io/io.h> #include <kernel/lib/lib.h> @@ -136,4 +137,4 @@ int pci_get_interrupt(uint32_t device) } else { return (int)pci_read_field(device, PCI_INTERRUPT_LINE, 1); } -}
\ No newline at end of file +} |