powerpc/mpc85xx: check number of cores
authorYork Sun <yorksun@freescale.com>
Mon, 8 Oct 2012 07:44:10 +0000 (07:44 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 22 Oct 2012 19:31:15 +0000 (14:31 -0500)
commit2f1712b275af3ed960b92cd1ed9b99d23c4919a5
treeae2e4901de910d98c85fd8b9ec71017e6a765206
parentf77329cfcf65e142ffbe930594c4d411c5d66429
powerpc/mpc85xx: check number of cores

Panic if the number of cores is more than CONFIG_MAX_CPUS because it will
surely overflow gd structure.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/cpu.c