- Timestamp:
- 2005-06-09T23:43:45Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74df77d
- Parents:
- d896525
- Location:
- src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/debug/print.c
rd896525 r18e0a6c 31 31 #include <synch/spinlock.h> 32 32 #include <arch/arg.h> 33 #include <arch/asm.h> 33 34 34 35 -
src/mm/frame.c
rd896525 r18e0a6c 42 42 43 43 #include <synch/spinlock.h> 44 45 #include <arch/asm.h> 44 46 45 47 count_t frames = 0; -
src/mm/heap.c
rd896525 r18e0a6c 33 33 #include <panic.h> 34 34 #include <arch/types.h> 35 #include <arch/asm.h> 35 36 36 37 /* -
src/mm/vm.c
rd896525 r18e0a6c 39 39 #include <list.h> 40 40 #include <panic.h> 41 #include <arch/asm.h> 41 42 42 43 vm_t *vm_create(void) -
src/proc/scheduler.c
rd896525 r18e0a6c 132 132 } 133 133 134 /* avoid deadlock with relink_rq */134 /* avoid deadlock with relink_rq() */ 135 135 if (!spinlock_trylock(&CPU->lock)) { 136 136 /* … … 447 447 448 448 cpu = &cpus[(i + k) % config.cpu_active]; 449 r = &cpu->rq[j];450 449 451 450 /* … … 454 453 */ 455 454 if (CPU == cpu) 456 continue; 455 continue; 457 456 458 457 restart: pri = cpu_priority_high(); 458 r = &cpu->rq[j]; 459 459 spinlock_lock(&r->lock); 460 460 if (r->n == 0) { … … 471 471 * We don't want to steal CPU-wired threads neither threads already stolen. 472 472 * The latter prevents threads from migrating between CPU's without ever being run. 473 * We don't want to steal threads whose FPU context is still in CPU 473 * We don't want to steal threads whose FPU context is still in CPU. 474 474 */ 475 475 spinlock_lock(&t->lock); 476 476 if ( (!(t->flags & (X_WIRED | X_STOLEN))) && (!(t->fpu_context_engaged)) ) { 477 477 478 /* 478 479 * Remove t from r. -
src/proc/thread.c
rd896525 r18e0a6c 177 177 frame_ks = frame_alloc(FRAME_KA); 178 178 if (THREAD_USER_STACK & flags) { 179 frame_us = frame_alloc( 0);179 frame_us = frame_alloc(FRAME_KA); 180 180 } 181 181 -
src/synch/semaphore.c
rd896525 r18e0a6c 31 31 #include <synch/waitq.h> 32 32 #include <synch/spinlock.h> 33 #include <arch/asm.h> 33 34 34 35 void semaphore_initialize(semaphore_t *s, int val)
Note:
See TracChangeset
for help on using the changeset viewer.