From 61c7bf940d9f6dedb1b5c0307fd170cae562fbd1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 19 May 2020 21:55:27 +0200 Subject: Woah, so many changes :O --- src/kernel/tasks/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/tasks/process.c') diff --git a/src/kernel/tasks/process.c b/src/kernel/tasks/process.c index 75419ba..900d775 100644 --- a/src/kernel/tasks/process.c +++ b/src/kernel/tasks/process.c @@ -179,7 +179,7 @@ struct process *process_from_pid(u32 pid) struct process *process_make_new() { debug("Making new process %d", pid); - struct process *proc = (struct process *)malloc(sizeof(struct process)); + struct process *proc = (struct process *)valloc(sizeof(struct process)); proc->registers.cs = 0x1B; proc->registers.ds = 0x23; proc->registers.ss = 0x23; @@ -232,4 +232,4 @@ u32 uspawn(char *path) log("Spawned"); process_force_switch(); return 0; -} +} \ No newline at end of file -- cgit v1.2.3