~jakub/helenos/ia64-revival

« back to all changes in this revision

Viewing changes to kernel/generic/src/ipc/kbox.c

  • Committer: Jakub Jermar
  • Date: 2011-04-13 14:45:41 UTC
  • mfrom: (527.1.397 main-clone)
  • Revision ID: jakub@jermar.eu-20110413144541-x0j3r1zxqhsljx1o
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        if (call->sender == TASK->udebug.debugger) {
107
107
                /* Terminate debugging session (if any). */
108
108
                LOG("Terminate debugging session.");
109
 
                irq_spinlock_lock(&TASK->lock, true);
 
109
                mutex_lock(&TASK->udebug.lock);
110
110
                udebug_task_cleanup(TASK);
111
 
                irq_spinlock_unlock(&TASK->lock, true);
 
111
                mutex_unlock(&TASK->udebug.lock);
112
112
        } else {
113
113
                LOG("Was not debugger.");
114
114
        }
166
166
                if (call == NULL)
167
167
                        continue;  /* Try again. */
168
168
                
169
 
                switch (IPC_GET_METHOD(call->data)) {
 
169
                switch (IPC_GET_IMETHOD(call->data)) {
170
170
                
171
171
                case IPC_M_DEBUG_ALL:
172
172
                        /* Handle debug call. */
191
191
        LOG("Exiting.");
192
192
}
193
193
 
194
 
 
195
194
/** Connect phone to a task kernel-box specified by id.
196
195
 *
197
196
 * Note that this is not completely atomic. For optimisation reasons, the task