Ignore:
File:
1 edited

Legend:

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

    ra7220de rf4c2b6a  
    3434
    3535#include <proc/thread.h>
    36 #include <arch/interrupt.h>
    3736
    3837/** Perform amd64 specific thread initialization.
    3938 *
    40  * @param thread Thread to be initialized.
    41  *
     39 * @param t Thread to be initialized.
    4240 */
    43 void thread_create_arch(thread_t *thread)
     41void thread_create_arch(thread_t *t)
    4442{
    45         thread->arch.tls = 0;
    46         thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;
    47        
     43        t->arch.tls = 0;
     44        t->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;
    4845        /*
    4946         * Kernel RSP can be precalculated at thread creation time.
    5047         */
    51         thread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =
    52             (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)];
     48        t->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =
     49            (uintptr_t) &t->kstack[PAGE_SIZE - sizeof(uint64_t)];
    5350}
    5451
Note: See TracChangeset for help on using the changeset viewer.