From 3f194f1c7264945a63b0018b159cc83bd9385c59 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 26 Aug 2024 23:00:55 +0300 Subject: fix memory leaks destroying threads --- src/proc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/proc.c') diff --git a/src/proc.c b/src/proc.c index 5753659..1c90fdc 100644 --- a/src/proc.c +++ b/src/proc.c @@ -65,14 +65,14 @@ stat_t init_proc(void *fdt, vm_t *proc_fdt, vm_t *proc_initrd) /** \todo start one thread per core, with special handling for init in * that each thread starts at the entry point of init? */ - *proc_fdt = map_fixed_uvmem(t, - (pm_t)fdt, fdt_totalsize(fdt), - MR_SHARED | VM_V | VM_R | VM_U); + *proc_fdt = map_shared_fixed_uvmem(t, + (pm_t)fdt, fdt_totalsize(fdt), + VM_V | VM_R | VM_U); pm_t initrd = (pm_t)__va(get_initrdbase(fdt)); - *proc_initrd = map_fixed_uvmem(t, - initrd, get_initrdsize(fdt), - MR_SHARED | VM_V | VM_R | VM_U); + *proc_initrd = map_shared_fixed_uvmem(t, + initrd, get_initrdsize(fdt), + VM_V | VM_R | VM_U); info("mapped fdt at %lx\n", *proc_fdt); info("mapped initrd at %lx\n", *proc_initrd); -- cgit v1.3