Rev 1104 | Rev 1184 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1104 | Rev 1112 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | swapgs(); |
43 | swapgs(); |
44 | write_msr(AMD_MSR_GS, |
44 | write_msr(AMD_MSR_GS, |
45 | (__u64)&THREAD->kstack); |
45 | (__u64)&THREAD->kstack); |
46 | swapgs(); |
46 | swapgs(); |
47 | 47 | ||
- | 48 | /* TLS support - set FS to thread local storage */ |
|
- | 49 | write_msr(AMD_MSR_FS, THREAD->tls); |
|
- | 50 | ||
48 | #ifdef CONFIG_DEBUG_AS_WATCHPOINT |
51 | #ifdef CONFIG_DEBUG_AS_WATCHPOINT |
49 | /* Set watchpoint on AS to ensure that nobody sets it to zero */ |
52 | /* Set watchpoint on AS to ensure that nobody sets it to zero */ |
50 | if (CPU->id < BKPOINTS_MAX) |
53 | if (CPU->id < BKPOINTS_MAX) |
51 | breakpoint_add(&((the_t *) THREAD->kstack)->as, |
54 | breakpoint_add(&((the_t *) THREAD->kstack)->as, |
52 | BKPOINT_WRITE | BKPOINT_CHECK_ZERO, |
55 | BKPOINT_WRITE | BKPOINT_CHECK_ZERO, |