Ignore:
File:
1 edited

Legend:

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

    r1a5eca4 r9d58539  
    3535#include <proc/thread.h>
    3636#include <arch/interrupt.h>
    37 #include <arch/kseg_struct.h>
    3837
    3938/** Perform amd64 specific thread initialization.
     
    4443void thread_create_arch(thread_t *thread)
    4544{
     45        thread->arch.tls = 0;
     46        thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;
     47       
    4648        /*
    4749         * Kernel RSP can be precalculated at thread creation time.
    4850         */
    49         thread->arch.kstack_rsp =
     51        thread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =
    5052            (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)];
    5153}
Note: See TracChangeset for help on using the changeset viewer.