[U-Boot] [PATCH] 85xx if NUM_CPUS>1, print cpu number
Ed Swarthout
Ed.Swarthout at freescale.com
Thu Oct 9 06:37:59 CEST 2008
Signed-off-by: Ed Swarthout <Ed.Swarthout at freescale.com>
---
cpu/mpc85xx/cpu.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c
index 67e81c0..bc7d092 100644
--- a/cpu/mpc85xx/cpu.c
+++ b/cpu/mpc85xx/cpu.c
@@ -98,7 +98,12 @@ int checkcpu (void)
#endif
minor = SVR_MIN(svr);
+#if (CONFIG_NUM_CPUS > 1)
+ volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR);
+ printf("CPU%d: ", pic->whoami);
+#else
puts("CPU: ");
+#endif
cpu = identify_cpu(ver);
if (cpu) {
--
1.5.6.5
More information about the U-Boot
mailing list