Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/proc/scheduler.c

    ra759467 r2ddcc7b  
    3838#include <proc/thread.h>
    3939#include <arch.h>
     40#include <arch/context.h>
    4041#include <arch/asm.h>
    4142#include <print.h>
     
    5657{
    5758        CPU->arch.tss->rsp0 =
    58             (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE];
     59            (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA];
    5960       
    6061        /*
Note: See TracChangeset for help on using the changeset viewer.