summaryrefslogtreecommitdiff
path: root/src/kernel/pci.c
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-13 03:19:57 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-13 03:19:57 -0400
commit1e4a254674f668839e5de273916024c16814b045 (patch)
tree6774f4d4398a29c4aafb4120070975d864ffcde4 /src/kernel/pci.c
parentb8284137d4e0eec11c78bc14047243fce6a51373 (diff)
downloadportland-os-1e4a254674f668839e5de273916024c16814b045.tar.gz
(basic, not much tested) keyboard, better panic
Diffstat (limited to 'src/kernel/pci.c')
-rw-r--r--src/kernel/pci.c6
1 files changed, 3 insertions, 3 deletions
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;