mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 07:01:57 +00:00
x86: Add debugging when cpu_common_init() fails
Add a debug() at this point to help figure out what is wrong. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
e6294e0579
commit
4cc00f0611
1 changed files with 3 additions and 1 deletions
|
@ -146,8 +146,10 @@ int print_cpuinfo(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = cpu_common_init();
|
ret = cpu_common_init();
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
debug("%s: cpu_common_init() failed\n", __func__);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check PM1_STS[15] to see if we are waking from Sx */
|
/* Check PM1_STS[15] to see if we are waking from Sx */
|
||||||
pm1_sts = inw(DEFAULT_PMBASE + PM1_STS);
|
pm1_sts = inw(DEFAULT_PMBASE + PM1_STS);
|
||||||
|
|
Loading…
Reference in a new issue