Subversion Repositories HelenOS-historic

Rev

Rev 1112 | Rev 1187 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1112 Rev 1184
Line 38... Line 38...
38
{
38
{
39
    CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
39
    CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
40
    CPU->arch.tss->ss0 = selector(KDATA_DES);
40
    CPU->arch.tss->ss0 = selector(KDATA_DES);
41
 
41
 
42
    /* Set up TLS in GS register */
42
    /* Set up TLS in GS register */
43
    set_tls_desc(THREAD->tls);
43
    set_tls_desc(THREAD->arch.tls);
44
 
44
 
45
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
45
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
46
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
46
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
47
    if (CPU->id < BKPOINTS_MAX)
47
    if (CPU->id < BKPOINTS_MAX)
48
        breakpoint_add(&((the_t *) THREAD->kstack)->as,
48
        breakpoint_add(&((the_t *) THREAD->kstack)->as,