Changeset 48c1ef9 in mainline for arch/ppc64/src/proc/scheduler.c
- Timestamp:
- 2006-05-21T20:38:18Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 040542aa
- Parents:
- bd55bbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc64/src/proc/scheduler.c
rbd55bbb r48c1ef9 28 28 29 29 #include <arch/mm/page.h> 30 #include <arch/boot/boot.h> 30 31 #include <proc/scheduler.h> 31 32 #include <proc/thread.h> 32 33 #include <arch.h> 33 34 __address supervisor_sp;35 __address supervisor_sp_physical;36 34 37 35 /** Perform ppc64 specific tasks needed before the new task is run. */ … … 43 41 void before_thread_runs_arch(void) 44 42 { 45 supervisor_sp = (__address) &THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]; 46 supervisor_sp_physical = KA2PA(supervisor_sp_physical); 43 pht_init(); 44 tlb_invalidate_all(); 45 asm volatile ( 46 "mtsprg0 %0\n" 47 : 48 : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) 49 ); 47 50 } 48 51
Note:
See TracChangeset
for help on using the changeset viewer.