Subversion Repositories HelenOS-historic

Rev

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

Rev 1074 Rev 1077
Line 38... Line 38...
38
    CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
38
    CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
39
    CPU->arch.tss->ss0 = selector(KDATA_DES);
39
    CPU->arch.tss->ss0 = selector(KDATA_DES);
40
 
40
 
41
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
41
#ifdef CONFIG_DEBUG_AS_WATCHPOINT
42
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
42
    /* Set watchpoint on AS to ensure that nobody sets it to zero */
43
    static int old_slot = -1;
-
 
44
    if (old_slot >=0)
43
    if (CPU->id < BKPOINTS_MAX)
45
        breakpoint_del(old_slot);
-
 
46
    old_slot = breakpoint_add(&((the_t *) THREAD->kstack)->as,
44
        breakpoint_add(&((the_t *) THREAD->kstack)->as,
47
                  BKPOINT_WRITE | BKPOINT_CHECK_ZERO);
45
                   BKPOINT_WRITE | BKPOINT_CHECK_ZERO,
-
 
46
                   CPU->id);
48
#endif
47
#endif
49
 
-
 
50
}
48
}
51
 
49
 
52
void after_thread_ran_arch(void)
50
void after_thread_ran_arch(void)
53
{
51
{
54
}
52
}