瀏覽代碼

85xx if NUM_CPUS>1, print cpu number

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Ed Swarthout 16 年之前
父節點
當前提交
6856b3d022
共有 1 個文件被更改,包括 5 次插入0 次删除
  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) {