]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/serial_console.c
xnu-344.tar.gz
[apple/xnu.git] / osfmk / ppc / serial_console.c
index 7c31eaa3c8a8f9c34a5f173b5f7e80915126006e..2e5768c745c3d05d2d993b7e26031e22568c1f64 100644 (file)
@@ -109,8 +109,7 @@ void cnputcusr(char c) {                                                                            /* Echo input character directly */
 
        unsigned int cpu;
        
-       if (cpu_data[master_cpu].active_thread) cpu = cpu_number();     /* If we're started up, use the current CPU */
-       else cpu = master_cpu;                                                                          /* Otherwise use the master_cpu */
+       cpu = cpu_number();
        
        hw_atomic_add(&debugger_holdoff[cpu], 1);                                       /* Don't allow debugger entry just now (this is a HACK) */
        
@@ -140,8 +139,7 @@ cnputc(char c)
                return;                                                                                                 /* If printing is disabled, bail... */
        }       
        
-       if (cpu_data[master_cpu].active_thread) cpu = cpu_number();     /* If we're started up, use the current CPU */
-       else cpu = master_cpu;                                                                          /* Otherwise use the master_cpu */
+       cpu = cpu_number();
 
        hw_atomic_add(&debugger_holdoff[cpu], 1);                                       /* Don't allow debugger entry just now (this is a HACK) */