ppc/85xx/86xx: Bug fix: call to puts in probecpu() moved to checkcpu().
PATCH 1/1 ppc/85xx/86xx: Bug fix: call to puts in probecpu() moved to checkcpu().
While in probecpu() UART is still not initialized.
Signed-off-by Poonam Aggrwal <[email protected]>
Acked-by Kumar Gala <[email protected]>
---
applies on git.am.freescale.net/mirrors/u-boot.git
cpu/mpc85xx/cpu.c | 4 ++++ cpu/mpc86xx/cpu.c | 6 ++++++ cpu/mpc8xxx/cpu.c | 6 ------ 3 files changed, 10 insertions(+), 6 deletions(-)
cpu/mpc85xx/cpu.c +4 -0
@@ -61,6 +61,10 @@ int checkcpu (void) minor =SVR_MIN (svr);if (cpu_numcores () >1 ) { +#ifndef CONFIG_MP +puts ("Unicore software on multiprocessor system!!\n" +"To enable mutlticore build define CONFIG_MP\n" ); +#endif volatile ccsr_pic_t *pic = (void *)(CONFIG_SYS_MPC85xx_PIC_ADDR);printf ("CPU%d: " , pic->whoami); }else {
cpu/mpc86xx/cpu.c +6 -0
@@ -61,6 +61,12 @@ checkcpu(void) major =SVR_MAJ (svr); minor =SVR_MIN (svr); +if (cpu_numcores () >1 ) { +#ifndef CONFIG_MP +puts ("Unicore software on multiprocessor system!!\n" +"To enable mutlticore build define CONFIG_MP\n" ); +#endif + }puts ("CPU: " ); cpu = gd->cpu;
cpu/mpc8xxx/cpu.c +0 -6
@@ -107,12 +107,6 @@ int probecpu (void) gd->cpu =identify_cpu (ver); -#ifndef CONFIG_MP -if (cpu_numcores () >1 ) { -puts ("Unicore software on multiprocessor system!!\n" -"To enable mutlticore build define CONFIG_MP\n" ); - } -#endif return 0 ; }
Signature · 1 line
1.5.6.5
Kumar Gala
AppliedPATCH 1/1 ppc/85xx/86xx: Bug fix: call to puts in probecpu() moved to checkcpu().
Quoted 10 lines · Poonam Aggrwal
While in
probecpu()UART is still not initialized.Signed-off-by Poonam Aggrwal <[email protected]>Acked-by Kumar Gala <[email protected]>---
applies on git.am.freescale.net/mirrors/u-boot.gitcpu/mpc85xx/cpu.c | 4 ++++ cpu/mpc86xx/cpu.c | 6 ++++++ cpu/mpc8xxx/cpu.c | 6 ------ 3 files changed, 10 insertions(+), 6 deletions(-)
applied to 85xx
- K