- Timestamp:
- 2005-12-13T11:23:14Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ef0d95
- Parents:
- 5bb8e45
- Location:
- generic
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
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.