From: Ed Swarthout Date: Thu, 9 Oct 2008 04:37:59 +0000 (-0500) Subject: 85xx if NUM_CPUS>1, print cpu number X-Git-Tag: v2009.01-rc1~157^2^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6856b3d0221a838580e6bb06f61425fd7529ba93;p=oweals%2Fu-boot.git 85xx if NUM_CPUS>1, print cpu number Signed-off-by: Ed Swarthout --- 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) {