Changeset d92bf462 in mainline for kernel/arch/ppc32/src/proc/scheduler.c
- Timestamp:
- 2010-05-22T22:31:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ba7371f9
- Parents:
- d354d57
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/proc/scheduler.c
rd354d57 rd92bf462 39 39 #include <arch.h> 40 40 41 /** Perform ppc32 specific tasks needed before the new task is run. */ 41 /** Perform ppc32 specific tasks needed before the new task is run. 42 * 43 */ 42 44 void before_task_runs_arch(void) 43 45 { 44 46 } 45 47 46 /** Perform ppc32 specific tasks needed before the new thread is scheduled. */ 48 /** Perform ppc32 specific tasks needed before the new thread is scheduled. 49 * 50 */ 47 51 void before_thread_runs_arch(void) 48 52 { 49 53 tlb_invalidate_all(); 54 50 55 asm volatile ( 51 "mtsprg0 %0\n" 52 : 53 : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) 56 "mtsprg0 %[ksp]\n" 57 :: [ksp] "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) 54 58 ); 55 59 }
Note:
See TracChangeset
for help on using the changeset viewer.