Changeset 762a824 in mainline for arch/ppc32/src/proc/scheduler.c
- Timestamp:
- 2006-05-01T14:44:37Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 16dad032
- Parents:
- 0f27b4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/proc/scheduler.c
r0f27b4c r762a824 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 ppc32 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 asm volatile ( 44 "mtsprg0 %0\n" 45 : 46 : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])) 47 ); 47 48 } 48 49
Note:
See TracChangeset
for help on using the changeset viewer.