summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:58:59 -0600
committerBin Meng <bmeng.cn@gmail.com>2016-08-30 09:26:05 +0800
commit4cc00f0611c4b491f6dd1f6a5582d24a41f12769 (patch)
treec12dc40dd80f55647ef0f973b80a9fa2536944ba /arch
parente6294e0579897a682a823aefc99fe416c78aaf6e (diff)
downloadu-boot-4cc00f0611c4b491f6dd1f6a5582d24a41f12769.tar.gz
u-boot-4cc00f0611c4b491f6dd1f6a5582d24a41f12769.tar.xz
u-boot-4cc00f0611c4b491f6dd1f6a5582d24a41f12769.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/ivybridge/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c
index 0f9390517f..85e361a58f 100644
--- a/arch/x86/cpu/ivybridge/cpu.c
+++ b/arch/x86/cpu/ivybridge/cpu.c
@@ -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);