Commit 4cc00f06 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng

x86: Add debugging when cpu_common_init() fails

Add a debug() at this point to help figure out what is wrong.
Signed-off-by: 's avatarSimon Glass <>
Reviewed-by: 's avatarBin Meng <>
parent e6294e05
......@@ -146,8 +146,10 @@ int print_cpuinfo(void)
ret = cpu_common_init();
if (ret)
if (ret) {
debug("%s: cpu_common_init() failed\n", __func__);
return ret;
/* Check PM1_STS[15] to see if we are waking from Sx */
pm1_sts = inw(DEFAULT_PMBASE + PM1_STS);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment