- Timestamp:
- 2005-05-12T20:37:03Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da79d0fd
- Parents:
- ea3fb2e
- Location:
- src/proc
- Files:
-
- 2 edited
-
scheduler.c (modified) (2 diffs)
-
thread.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/proc/scheduler.c
rea3fb2e rf2ffad4 42 42 #include <mm/page.h> 43 43 #include <synch/spinlock.h> 44 #include <arch/faddr.h> 44 45 45 46 #ifdef __SMP__ … … 233 234 context_save(&CPU->saved_context); 234 235 CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8]; 235 CPU->saved_context.pc = (__address) scheduler_separated_stack;236 CPU->saved_context.pc = FADDR(scheduler_separated_stack); 236 237 context_restore(&CPU->saved_context); 237 238 /* not reached */ -
src/proc/thread.c
rea3fb2e rf2ffad4 49 49 #include <arch/interrupt.h> 50 50 #include <smp/ipi.h> 51 #include <arch/faddr.h> 51 52 52 53 char *thread_states[] = {"Invalid", "Running", "Sleeping", "Ready", "Entering", "Exiting"}; … … 165 166 166 167 context_save(&t->saved_context); 167 t->saved_context.pc = (__address) cushion;168 t->saved_context.pc = FADDR(cushion); 168 169 t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-8]; 169 170
Note:
See TracChangeset
for help on using the changeset viewer.
