Changeset 5a95b25 in mainline
- Timestamp:
- 2005-12-13T11:23:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ef0d95
- Parents:
- 5bb8e45
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/smp/mps.c
r5bb8e45 r5a95b25 323 323 324 324 /* this ioapic is marked unusable */ 325 if ( ioa->io_apic_flags & 1== 0)325 if ((ioa->io_apic_flags & 1) == 0) 326 326 return; 327 327 -
arch/mips32/src/debugger.c
r5bb8e45 r5a95b25 232 232 panic("Weird breakpoint state.\n"); 233 233 if (!cur->executing) { 234 printf("***Breakpoint %d: %p in %s.\n", i,234 printf("***Breakpoint %d: 0x%p in %s.\n", i, 235 235 pstate->epc,symbol); 236 236 /* Return first instruction back */ … … 249 249 } 250 250 } else { 251 printf("***Breakpoint %p in %s.\n", pstate->epc, symbol);251 printf("***Breakpoint 0x%p in %s.\n", pstate->epc, symbol); 252 252 /* Move on to next instruction */ 253 253 pstate->epc += 4; -
arch/mips32/src/exception.c
r5bb8e45 r5a95b25 112 112 } 113 113 114 #ifdef CONFIG_FPU_LAZY 114 115 static void cpuns_exception(int n, void *data) 115 116 { … … 119 120 panic("unhandled Coprocessor Unusable Exception\n"); 120 121 } 122 #endif 121 123 122 124 static void interrupt_exception(int n, void *pstate) -
arch/mips32/src/fmath.c
r5bb8e45 r5a95b25 44 44 double fmath_get_decimal_exponent(double num) 45 45 { //TODO: 46 double value;46 // double value; 47 47 // log10(2)*log2(x) => log10(x) 48 48 /* __asm__ __volatile__ ( \ … … 51 51 "fyl2x #count st(0)*log2(st(1))->st(1); pop st(0) \n\t" \ 52 52 : "=t" (value) : "0"(num) ); 53 */ return value;53 */ return 1.0; 54 54 55 55 } -
generic/include/func.h
r5bb8e45 r5a95b25 33 33 #include <typedefs.h> 34 34 35 extern __u32 haltstate;35 extern volatile __u32 haltstate; 36 36 37 37 extern void halt(void); -
generic/include/panic.h
r5bb8e45 r5a95b25 36 36 #endif 37 37 38 extern void panic_printf(char *fmt, ...) ;38 extern void panic_printf(char *fmt, ...) __attribute__((noreturn)) ; 39 39 40 40 #endif -
generic/src/debug/print.c
r5bb8e45 r5a95b25 56 56 char c; 57 57 58 while ( c = str[i++])58 while ((c = str[i++])) 59 59 putchar(c); 60 60 } … … 291 291 spinlock_lock(&printflock); 292 292 293 while ( c = fmt[i++]) {293 while ((c = fmt[i++])) { 294 294 switch (c) { 295 295 -
generic/src/lib/func.c
r5bb8e45 r5a95b25 35 35 #include <console/kconsole.h> 36 36 37 __u32 37 __u32 volatile haltstate = 0; /**< Halt flag */ 38 38 39 39 -
generic/src/main/kinit.c
r5bb8e45 r5a95b25 85 85 * Just a beautification. 86 86 */ 87 if ( t = thread_create(kmp, NULL, TASK, 0)) {87 if ((t = thread_create(kmp, NULL, TASK, 0))) { 88 88 spinlock_lock(&t->lock); 89 89 t->flags |= X_WIRED; … … 113 113 for (i = 0; i < config.cpu_count; i++) { 114 114 115 if ( t = thread_create(kcpulb, NULL, TASK, 0)) {115 if ((t = thread_create(kcpulb, NULL, TASK, 0))) { 116 116 spinlock_lock(&t->lock); 117 117 t->flags |= X_WIRED; … … 134 134 * Create kernel console. 135 135 */ 136 if ( t = thread_create(kconsole, "kconsole", TASK, 0))136 if ((t = thread_create(kconsole, "kconsole", TASK, 0))) 137 137 thread_ready(t); 138 138 else panic("thread_create/kconsole\n"); -
generic/src/mm/frame.c
r5bb8e45 r5a95b25 410 410 if (is_left) { 411 411 index = (FRAME_INDEX(zone, frame)) + (1 << frame->buddy_order); 412 } else if (is_right) {412 } else { // if (is_right) 413 413 index = (FRAME_INDEX(zone, frame)) - (1 << frame->buddy_order); 414 414 } -
generic/src/mm/heap.c
r5bb8e45 r5a95b25 101 101 y->next = NULL; 102 102 103 if (z = x->next) { 103 z = x->next; 104 if (z) { 104 105 z->prev = y; 105 106 y->next = z; -
generic/src/synch/waitq.c
r5bb8e45 r5a95b25 77 77 grab_locks: 78 78 spinlock_lock(&t->lock); 79 if ( wq = t->sleep_queue) { /* assignment */79 if ((wq = t->sleep_queue)) { /* assignment */ 80 80 if (!spinlock_trylock(&wq->lock)) { 81 81 spinlock_unlock(&t->lock); -
generic/src/time/clock.c
r5bb8e45 r5a95b25 93 93 94 94 spinlock_lock(&THREAD->lock); 95 if ( ticks = THREAD->ticks)95 if ((ticks = THREAD->ticks)) 96 96 THREAD->ticks--; 97 97 spinlock_unlock(&THREAD->lock);
Note:
See TracChangeset
for help on using the changeset viewer.