diff options
author | Marvin Borner | 2020-05-19 21:55:27 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-19 21:55:27 +0200 |
commit | 61c7bf940d9f6dedb1b5c0307fd170cae562fbd1 (patch) | |
tree | c4b4381fd9519f8f43067e55718dd502b9100e0d /src/kernel/tasks | |
parent | ffb7cb87593a5de58f7c5183020576dac9d50fc4 (diff) |
Woah, so many changes :O
Diffstat (limited to 'src/kernel/tasks')
-rw-r--r-- | src/kernel/tasks/process.c | 4 | ||||
-rw-r--r-- | src/kernel/tasks/process.h | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/src/kernel/tasks/process.h b/src/kernel/tasks/process.h index 00f0f07..96ef44b 100644 --- a/src/kernel/tasks/process.h +++ b/src/kernel/tasks/process.h @@ -65,4 +65,4 @@ extern u32 stack_hold; #define WAIT_ERROR (-1) #define WAIT_OKAY 0 -#endif +#endif
\ No newline at end of file |