commit | 2240fdeb73535c9112a3bba581a4cf4bb744fe9d | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Wed Jan 18 03:32:53 2017 -0800 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Feb 07 13:23:36 2017 +0800 |
tree | c4eb860eec5f46ebe665f60fd3c84a5c60105865 | |
parent | fd0c4472fb0092633159cb2e80dbc68cf59ad231 [diff] |
x86: spl: Add weak arch_cpu_init_dm() arch_cpu_init_dm() might not be implemented by every platform. Implement a weak version for SPL. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c index af1c60f..ed2d40b 100644 --- a/arch/x86/lib/spl.c +++ b/arch/x86/lib/spl.c
@@ -15,6 +15,11 @@ DECLARE_GLOBAL_DATA_PTR; +__weak int arch_cpu_init_dm(void) +{ + return 0; +} + static int x86_spl_init(void) { /*