Browse Source

85xx if NUM_CPUS>1, print cpu number

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Ed Swarthout 16 years ago
parent
commit
6856b3d022
1 changed files with 5 additions and 0 deletions
  1. 5 0
      cpu/mpc85xx/cpu.c

+ 5 - 0
cpu/mpc85xx/cpu.c

@@ -99,7 +99,12 @@ int checkcpu (void)
 #endif
 	minor = SVR_MIN(svr);
 
+#if (CONFIG_NUM_CPUS > 1)
+	volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);
+	printf("CPU%d:  ", pic->whoami);
+#else
 	puts("CPU:   ");
+#endif
 
 	cpu = identify_cpu(ver);
 	if (cpu) {