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

@ -73,10 +73,10 @@ void kmain(void)
struct limine_file *kfile = (struct limine_file *)((paddr_t)resp->kernel_file | hhdm_start);
kcmdline = kzalloc(strlen(kfile->cmdline) + 1);
kcmdline = kzalloc(strlen(kfile->cmdline) + 1, ALLOC_KERN);
strcpy(kcmdline, kfile->cmdline);
kpath = kzalloc(strlen(kfile->path) + 1);
kpath = kzalloc(strlen(kfile->path) + 1, ALLOC_KERN);
strcpy(kpath, kfile->path);
kroot_disk = kfile->gpt_disk_uuid;