patch-2.3.39 linux/arch/ppc/xmon/start.c

Next file: linux/arch/sparc/ap1000/apmmu.c
Previous file: linux/arch/ppc/treeboot/misc.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/arch/ppc/xmon/start.c linux/arch/ppc/xmon/start.c
@@ -102,9 +102,11 @@
     if (!scc_initialized)
 	xmon_init_scc();
     for (i = 0; i < nb; ++i) {
+#ifdef CONFIG_ADB	    
 	while ((*sccc & TXRDY) == 0)
 	    if (sys_ctrler == SYS_CTRLER_PMU)
 		pmu_poll();
+#endif /* CONFIG_ADB */
 	buf_access();
 	if ( console && (*p != '\r'))
 		printk("%c", *p);
@@ -195,9 +197,11 @@
     if (!scc_initialized)
 	xmon_init_scc();
     for (i = 0; i < nb; ++i) {
+#ifdef CONFIG_ADB	    
 	while ((*sccc & RXRDY) == 0)
 	    if (sys_ctrler == SYS_CTRLER_PMU)
 		pmu_poll();
+#endif /* CONFIG_ADB */
 	buf_access();
 #if 0	
 	if ( 0/*console*/ )

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)