Rev 1374 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1374 | Rev 1384 | ||
|---|---|---|---|
| Line 39... | Line 39... | ||
| 39 | 39 | ||
| 40 | /** Perform ppc32 specific tasks needed before the new thread is scheduled. */ |
40 | /** Perform ppc32 specific tasks needed before the new thread is scheduled. */ |
| 41 | void before_thread_runs_arch(void) |
41 | void before_thread_runs_arch(void) |
| 42 | { |
42 | { |
| 43 | pht_init(); |
43 | pht_init(); |
| - | 44 | tlb_invalidate_all(); |
|
| 44 | asm volatile ( |
45 | asm volatile ( |
| 45 | "mtsprg0 %0\n" |
46 | "mtsprg0 %0\n" |
| 46 | : |
47 | : |
| 47 | : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) |
48 | : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) |
| 48 | ); |
49 | ); |