Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips64/src/mips64.c

    r2277e03 r4dee0cb  
    188188            cp0_status_um_bit | cp0_status_ie_enabled_bit));
    189189        cp0_epc_write((uintptr_t) kernel_uarg->uspace_entry);
    190         userspace_asm(((uintptr_t) kernel_uarg->uspace_stack +
    191             kernel_uarg->uspace_stack_size),
     190        userspace_asm(((uintptr_t) kernel_uarg->uspace_stack + STACK_SIZE),
    192191            (uintptr_t) kernel_uarg->uspace_uarg,
    193192            (uintptr_t) kernel_uarg->uspace_entry);
     
    205204{
    206205        supervisor_sp =
    207             (uintptr_t) &THREAD->kstack[STACK_SIZE];
     206            (uintptr_t) &THREAD->kstack[STACK_SIZE - SP_DELTA];
    208207}
    209208
Note: See TracChangeset for help on using the changeset viewer.