- Timestamp:
- 2005-04-09T18:22:53Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8262010
- Parents:
- e6ba9a3f
- Location:
- src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/kinit.c
re6ba9a3f r43114c5 71 71 * Just a beautification. 72 72 */ 73 if (t = thread_create(kmp, NULL, the->task, 0)) {73 if (t = thread_create(kmp, NULL, TASK, 0)) { 74 74 spinlock_lock(&t->lock); 75 75 t->flags |= X_WIRED; … … 96 96 for (i = 0; i < config.cpu_count; i++) { 97 97 98 if (t = thread_create(kcpulb, NULL, the->task, 0)) {98 if (t = thread_create(kcpulb, NULL, TASK, 0)) { 99 99 spinlock_lock(&t->lock); 100 100 t->flags |= X_WIRED; -
src/main/main.c
re6ba9a3f r43114c5 185 185 * switch to this cpu's private stack prior to waking kmp up. 186 186 */ 187 the->cpu->saved_context.sp = (__address) &the->cpu->stack[CPU_STACK_SIZE-8];188 the->cpu->saved_context.pc = (__address) main_ap_separated_stack;189 context_restore(& the->cpu->saved_context);187 CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-8]; 188 CPU->saved_context.pc = (__address) main_ap_separated_stack; 189 context_restore(&CPU->saved_context); 190 190 /* not reached */ 191 191 }
Note:
See TracChangeset
for help on using the changeset viewer.
