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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue