/* calculate stack start (since it grows down) */
movl 16(%esp), %eax
- addl $CONFIG_KERNEL_STACK_SIZE, %eax
/*
* We will use _int_restore (the lower half of the interrupt handler)
proc->p_privl = ppl;
task_prepare(proc->p_tasks, (u32_t)pdbr, (u32_t)entry,
- (u32_t)kstack, (u32_t)ustack + PAGE_SIZE, ppl);
+ (u32_t)kstack + CONFIG_KERNEL_STACK_SIZE,
+ (u32_t)ustack + CONFIG_USER_STACK_SIZE, ppl);
proc->p_tasks->t_sp = (u32_t)(CONFIG_KERNEL_STACK_BASE +
((u32_t)proc->p_tasks->t_sp - (u32_t)kstack));