From 1e4a254674f668839e5de273916024c16814b045 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 13 Sep 2020 03:19:57 -0400 Subject: (basic, not much tested) keyboard, better panic --- src/kernel/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/pci.c') diff --git a/src/kernel/pci.c b/src/kernel/pci.c index 9e33e49..14e24a4 100644 --- a/src/kernel/pci.c +++ b/src/kernel/pci.c @@ -32,7 +32,7 @@ struct pci_device *find_pci_device_from_class_and_subclass(uint8_t class, uint8_ static struct pci_device *next_pci_device() { if (!(n_pci_devices % PCI_DEVICES_PER_PAGE)) if (!(pci_device_pages[n_pci_devices / PCI_DEVICES_PER_PAGE] = allocate_kernel_pages(1))) - panic("Out of memory in PCI enumeration"); + PANIC("Out of memory in PCI enumeration."); return nth_pci_device(n_pci_devices++); } @@ -64,9 +64,9 @@ static void pci_device_check(uint16_t number) { void pci_init() { if (!(BOOT_INFO->support_flags & BIS_PCI)) - panic("No PCI support detected."); + PANIC("No PCI support detected."); if (!(BOOT_INFO->pci_hw_char & PHC_CS_M1)) - panic("No PCI Mechanism 1 support"); + PANIC("No PCI Mechanism 1 support."); n_pci_devices = 0; -- cgit v1.2.3