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:
parent
20d19ed994
commit
8544efe1ab
7 changed files with 89 additions and 36 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue