summaryrefslogtreecommitdiffstats
path: root/cpu
diff options
context:
space:
mode:
authorEd Swarthout <Ed.Swarthout@freescale.com>2008-10-08 23:37:59 -0500
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:05 +0200
commit6856b3d0221a838580e6bb06f61425fd7529ba93 (patch)
treee4f0033d003d798e136cb30e2fb2dcfd46d0a840 /cpu
parentf7fecc3e25050a036c9f50f0d2b85bc3199a96e0 (diff)
downloadu-boot-6856b3d0221a838580e6bb06f61425fd7529ba93.tar.gz
u-boot-6856b3d0221a838580e6bb06f61425fd7529ba93.tar.xz
u-boot-6856b3d0221a838580e6bb06f61425fd7529ba93.zip
85xx if NUM_CPUS>1, print cpu number
Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc85xx/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c
index 61162a8bb3..9c4f214502 100644
--- a/cpu/mpc85xx/cpu.c
+++ b/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) {