- Timestamp:
- 2005-08-31T22:00:32Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cd95d784
- Parents:
- d2bb9f8a
- Location:
- src/proc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/proc/scheduler.c
rd2bb9f8a r3e1607f 136 136 continue; 137 137 } 138 138 139 139 /* avoid deadlock with relink_rq() */ 140 140 if (!spinlock_trylock(&CPU->lock)) { … … 413 413 #endif 414 414 415 /* 416 * Copy the knowledge of CPU, TASK, THREAD and preemption counter to thread's stack. 417 */ 415 418 the_copy(THE, (the_t *) THREAD->kstack); 416 419 -
src/proc/thread.c
rd2bb9f8a r3e1607f 76 76 void *arg = THREAD->thread_arg; 77 77 78 /* this is where each thread wakes up after its creation */ 78 79 before_thread_runs(); 79 80 80 /* this is where each thread wakes up after its creation */81 81 spinlock_unlock(&THREAD->lock); 82 82 cpu_priority_low();
Note:
See TracChangeset
for help on using the changeset viewer.