Changeset 623ba26c in mainline
- Timestamp:
- 2005-09-01T14:42:09Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e83a9f7
- Parents:
- db3341e
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/src/exception.c
rdb3341e r623ba26c 33 33 #include <arch/types.h> 34 34 #include <arch.h> 35 #include <debug.h> 35 36 36 37 void exception(void) … … 40 41 __u32 epc_shift = 0; 41 42 pri_t pri; 43 44 ASSERT(CPU != NULL); 42 45 43 46 /* -
include/proc/scheduler.h
rdb3341e r623ba26c 44 44 }; 45 45 46 extern volatile int nrdy;46 extern volatile count_t nrdy; 47 47 48 48 static thread_t *find_best_thread(void); -
src/lib/func.c
rdb3341e r623ba26c 45 45 haltstate = 1; 46 46 cpu_priority_high(); 47 printf("cpu%d: halted\n", CPU->id); 47 if (CPU) 48 printf("cpu%d: halted\n", CPU->id); 49 else 50 printf("cpu: halted\n"); 48 51 cpu_halt(); 49 52 } -
src/mm/vm.c
rdb3341e r623ba26c 67 67 src_ptl0 = (pte_t *) PA2KA((__address) GET_PTL0_ADDRESS()); 68 68 dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC); 69 70 /* TODO: in theory, it should be only necessary to copy kernel address space... */ 69 71 memcpy((void *)PA2KA((__address) dst_ptl0), (void *)GET_PTL0_ADDRESS() , PAGE_SIZE); 72 70 73 m->ptl0 = (pte_t *) KA2PA((__address) dst_ptl0); 71 74 } -
src/proc/scheduler.c
rdb3341e r623ba26c 47 47 #include <mm/frame.h> 48 48 #include <mm/heap.h> 49 50 51 volatile int nrdy;49 #include <debug.h> 50 51 volatile count_t nrdy; 52 52 53 53 … … 90 90 runq_t *r; 91 91 int i, n; 92 93 ASSERT(CPU != NULL); 92 94 93 95 loop: … … 148 150 spinlock_unlock(&CPU->lock); 149 151 150 atomic_dec( &nrdy);152 atomic_dec((int *) &nrdy); 151 153 r->n--; 152 154 … … 230 232 volatile pri_t pri; 231 233 234 ASSERT(CPU != NULL); 235 232 236 pri = cpu_priority_high(); 233 237 … … 292 296 { 293 297 int priority; 298 299 ASSERT(CPU != NULL); 294 300 295 301 if (THREAD) { -
src/proc/thread.c
rdb3341e r623ba26c 137 137 spinlock_unlock(&r->lock); 138 138 139 atomic_inc( &nrdy);139 atomic_inc((int *) &nrdy); 140 140 avg = nrdy / config.cpu_active; 141 141
Note:
See TracChangeset
for help on using the changeset viewer.