Changeset 0108984a in mainline for kernel/generic/src/ipc/ipc_kbox.c
- Timestamp:
- 2008-09-17T13:38:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c9a29d6
- Parents:
- fb9b0b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipc_kbox.c
rfb9b0b0 r0108984a 40 40 #include <arch.h> 41 41 #include <errno.h> 42 #include < print.h>42 #include <debug.h> 43 43 #include <udebug/udebug_ipc.h> 44 44 #include <ipc/ipc_kbox.h> … … 66 66 67 67 if (have_kb_thread) { 68 printf("join kb_thread..\n");68 LOG("join kb_thread..\n"); 69 69 thread_join(TASK->kb_thread); 70 70 thread_detach(TASK->kb_thread); 71 printf("join done\n");71 LOG("join done\n"); 72 72 TASK->kb_thread = NULL; 73 73 } … … 89 89 90 90 (void)arg; 91 printf("kbox_thread_proc()\n");91 LOG("kbox_thread_proc()\n"); 92 92 done = false; 93 93 94 94 while (!done) { 95 //printf("kbox: wait for call\n");96 95 call = ipc_wait_for_call(&TASK->kernel_box, SYNCH_NO_TIMEOUT, 97 96 SYNCH_FLAGS_NONE); … … 105 104 106 105 if (method == IPC_M_PHONE_HUNGUP) { 107 printf("kbox: handle hangup message\n");106 LOG("kbox: handle hangup message\n"); 108 107 109 108 /* Was it our debugger, who hung up? */ 110 109 if (call->sender == TASK->udebug.debugger) { 111 110 /* Terminate debugging session (if any) */ 112 printf("kbox: terminate debug session\n");111 LOG("kbox: terminate debug session\n"); 113 112 ipl = interrupts_disable(); 114 113 spinlock_lock(&TASK->lock); … … 117 116 interrupts_restore(ipl); 118 117 } else { 119 printf("kbox: was not debugger\n");118 LOG("kbox: was not debugger\n"); 120 119 } 121 120 122 printf("kbox: continue with hangup message\n");121 LOG("kbox: continue with hangup message\n"); 123 122 IPC_SET_RETVAL(call->data, 0); 124 123 ipc_answer(&TASK->kernel_box, call); … … 131 130 TASK->kb_thread = NULL; 132 131 done = true; 133 printf("phone list is empty\n");132 LOG("phone list is empty\n"); 134 133 } 135 134 spinlock_unlock(&TASK->answerbox.lock); … … 140 139 } 141 140 142 printf("kbox: finished\n");141 LOG("kbox: finished\n"); 143 142 } 144 143
Note:
See TracChangeset
for help on using the changeset viewer.