Changeset c621f4aa in mainline for kernel/arch/amd64/src/proc/thread.c


Ignore:
Timestamp:
2010-07-25T10:11:13Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
377cce8
Parents:
24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with mainline.

File:
1 edited

Legend:

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

    r24a2517 rc621f4aa  
    3434
    3535#include <proc/thread.h>
     36#include <arch/interrupt.h>
    3637
    3738/** Perform amd64 specific thread initialization.
    3839 *
    39  * @param t Thread to be initialized.
     40 * @param thread Thread to be initialized.
     41 *
    4042 */
    41 void thread_create_arch(thread_t *t)
     43void thread_create_arch(thread_t *thread)
    4244{
    43         t->arch.tls = 0;
    44         t->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;
     45        thread->arch.tls = 0;
     46        thread->arch.syscall_rsp[SYSCALL_USTACK_RSP] = 0;
     47       
    4548        /*
    4649         * Kernel RSP can be precalculated at thread creation time.
    4750         */
    48         t->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =
    49             (uintptr_t) &t->kstack[PAGE_SIZE - sizeof(uint64_t)];
     51        thread->arch.syscall_rsp[SYSCALL_KSTACK_RSP] =
     52            (uintptr_t) &thread->kstack[PAGE_SIZE - sizeof(istate_t)];
    5053}
    5154
Note: See TracChangeset for help on using the changeset viewer.