aboutsummaryrefslogtreecommitdiff
path: root/src/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-26 23:00:55 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-26 23:00:55 +0300
commit3f194f1c7264945a63b0018b159cc83bd9385c59 (patch)
tree4d277264e75b197844eae154e96e73d9cd54de3a /src/proc.c
parent1b5a553194f47066d60bb1c9475af1f413af8f4a (diff)
downloadkmi-3f194f1c7264945a63b0018b159cc83bd9385c59.tar.gz
kmi-3f194f1c7264945a63b0018b159cc83bd9385c59.zip
fix memory leaks destroying threads
Diffstat (limited to 'src/proc.c')
-rw-r--r--src/proc.c12
1 files changed, 6 insertions, 6 deletions
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);