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