mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-29 18:11:43 +00:00
powerpc/mpc85xx: check if core is disabled for showing status
"cpu <num> status" should check if core is disabled before printing the spin table location. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
d54097b6c1
commit
0c9ab437de
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ int cpu_status(int nr)
|
||||||
if (nr == id) {
|
if (nr == id) {
|
||||||
table = (u32 *)&__spin_table;
|
table = (u32 *)&__spin_table;
|
||||||
printf("table base @ 0x%p\n", table);
|
printf("table base @ 0x%p\n", table);
|
||||||
|
} else if (is_core_disabled(nr)) {
|
||||||
|
puts("Disabled\n");
|
||||||
} else {
|
} else {
|
||||||
table = (u32 *)&__spin_table + nr * NUM_BOOT_ENTRY;
|
table = (u32 *)&__spin_table + nr * NUM_BOOT_ENTRY;
|
||||||
printf("Running on cpu %d\n", id);
|
printf("Running on cpu %d\n", id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue