85xx if NUM_CPUS>1, print cpu number
authorEd Swarthout <Ed.Swarthout@freescale.com>
Thu, 9 Oct 2008 04:37:59 +0000 (23:37 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:05 +0000 (21:54 +0200)
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
cpu/mpc85xx/cpu.c

index 61162a8bb3a7721254b69bc09fdd8a49f5599dc6..9c4f2145025f8d2d12004006075a40e0775b5fb4 100644 (file)
@@ -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) {