Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2441
Line 64... Line 64...
64
    /* Set up TLS in GS register */
64
    /* Set up TLS in GS register */
65
    set_tls_desc(THREAD->arch.tls);
65
    set_tls_desc(THREAD->arch.tls);
66
 
66
 
67
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
67
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
68
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
68
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
69
    if (CPU->id < BKPOINTS_MAX)
69
    if (CPU->id < BKPOINTS_MAX) {
-
 
70
        the_t *the = THE;
70
        breakpoint_add(&((the_t *) THREAD->kstack)->as,
71
        breakpoint_add(&((the_t *) the->thread->kstack)->as,
71
                   BKPOINT_WRITE | BKPOINT_CHECK_ZERO,
72
            BKPOINT_WRITE | BKPOINT_CHECK_ZERO, the->cpu->id);
72
                   CPU->id);
73
    }
73
#endif
74
#endif
74
}
75
}
75
 
76
 
76
void after_thread_ran_arch(void)
77
void after_thread_ran_arch(void)
77
{
78
{