slab: upgrade kmalloc to allow DMA regions

these DMA regions are only meant to comply with certain AHCI
requirements, and are not yet general purpose
This commit is contained in:
Michael Shaw 2023-05-08 01:14:11 -04:00
commit 8544efe1ab
7 changed files with 89 additions and 36 deletions

View file

@ -99,7 +99,7 @@ struct pci_device *pci_find_device(uint8_t class, uint8_t subclass)
void pci_init()
{
pci_devices = kzalloc(sizeof(struct pci_device) * MAX_PCI_DEVICES);
pci_devices = kzalloc(sizeof(struct pci_device) * MAX_PCI_DEVICES, ALLOC_KERN);
pci_device_count = 0;
for (int bus = 0; bus < 256; bus++)