Changeset 281b607 in mainline for arch/ia32/src/proc/scheduler.c


Ignore:
Timestamp:
2006-03-23T10:29:39Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0bb10ef
Parents:
9aa72b4
Message:

Added basic kernel infrastructure for ThreadLocalStorage(TLS) for
ia32(complete),amd64(complete),mips32(missing emulation of rdhwr instruction).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/proc/scheduler.c

    r9aa72b4 r281b607  
    3333#include <arch/context.h>       /* SP_DELTA */
    3434#include <arch/debugger.h>
     35#include <arch/pm.h>
    3536
    3637void before_thread_runs_arch(void)
     
    3839        CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
    3940        CPU->arch.tss->ss0 = selector(KDATA_DES);
     41
     42        /* Set up TLS in GS register */
     43        set_tls_desc(THREAD->tls);
    4044
    4145#ifdef CONFIG_DEBUG_AS_WATCHPOINT
Note: See TracChangeset for help on using the changeset viewer.