diff options
Diffstat (limited to 'src/kernel/tasks/process.c')
-rw-r--r-- | src/kernel/tasks/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |