Message ID | 1484739184-24211-2-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | 45ffa122f2533376d2e58817d69c9149d91afc0f |
Delegated to: | Bin Meng |
Headers | show |
On 18 January 2017 at 04:32, Bin Meng <bmeng.cn@gmail.com> wrote: > DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error. > > Signed-off-by: Bin Meng <bmeng.cn@gmail.com> > --- > > arch/x86/cpu/qemu/e820.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass <sjg@chromium.org>
On Tue, Jan 24, 2017 at 3:50 AM, Simon Glass <sjg@chromium.org> wrote: > On 18 January 2017 at 04:32, Bin Meng <bmeng.cn@gmail.com> wrote: >> DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error. >> >> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> >> --- >> >> arch/x86/cpu/qemu/e820.c | 2 ++ >> 1 file changed, 2 insertions(+) > > Reviewed-by: Simon Glass <sjg@chromium.org> applied to u-boot-x86, thanks!
diff --git a/arch/x86/cpu/qemu/e820.c b/arch/x86/cpu/qemu/e820.c index 63853e4..c1c9b89 100644 --- a/arch/x86/cpu/qemu/e820.c +++ b/arch/x86/cpu/qemu/e820.c @@ -7,6 +7,8 @@ #include <common.h> #include <asm/e820.h> +DECLARE_GLOBAL_DATA_PTR; + unsigned install_e820_map(unsigned max_entries, struct e820entry *entries) { entries[0].addr = 0;
DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- arch/x86/cpu/qemu/e820.c | 2 ++ 1 file changed, 2 insertions(+)