~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to kernel/generic/src/console/cmd.c

  • Committer: Jiri Svoboda
  • Date: 2012-11-11 21:31:03 UTC
  • mfrom: (1527.1.178 mainline)
  • Revision ID: jiri@wiwaxia-20121111213103-314bmkettwvlwj97
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
723
723
                
724
724
                thread_t *thread;
725
725
                if ((thread = thread_create((void (*)(void *)) cmd_call0,
726
 
                    (void *) argv, TASK, THREAD_FLAG_WIRED, "call0", false))) {
727
 
                        irq_spinlock_lock(&thread->lock, true);
728
 
                        thread->cpu = &cpus[i];
729
 
                        irq_spinlock_unlock(&thread->lock, true);
730
 
                        
 
726
                    (void *) argv, TASK, THREAD_FLAG_NONE, "call0"))) {
731
727
                        printf("cpu%u: ", i);
732
 
                        
 
728
                        thread_wire(thread, &cpus[i]);
733
729
                        thread_ready(thread);
734
730
                        thread_join(thread);
735
731
                        thread_detach(thread);