瀏覽代碼

x86: qemu: Add missing DECLARE_GLOBAL_DATA_PTR in e820.c

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>
Bin Meng 8 年之前
父節點
當前提交
45ffa122f2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/cpu/qemu/e820.c

+ 2 - 0
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;