]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: qemu: Add missing DECLARE_GLOBAL_DATA_PTR in e820.c
authorBin Meng <bmeng.cn@gmail.com>
Wed, 18 Jan 2017 11:32:51 +0000 (03:32 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 7 Feb 2017 05:22:01 +0000 (13:22 +0800)
DECLARE_GLOBAL_DATA_PTR is missing which causes 64-bit build error.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/qemu/e820.c

index 63853e4b22d6df58237ddf65449453c3e6e0c6fa..c1c9b89def798840a4c4bc820cbdc256374fd4f6 100644 (file)
@@ -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;