diff options
Diffstat (limited to 'kernel/proc.c')
-rw-r--r-- | kernel/proc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/proc.c b/kernel/proc.c index 1178952..959ef94 100644 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -6,10 +6,8 @@ struct process *process_current; struct process *process_new(void *eip) { struct process *proc; - proc = malloc(sizeof(struct process)); - - // should allocate an actual page. TODO - proc->stack_top = proc->esp = malloc(4096); + proc = page_alloc(1); // TODO kmalloc + proc->stack_top = proc->esp = page_alloc(1) + 1 * PAGE_SIZE; proc->eip = eip; return proc; |