[PATCH] fixup: x86: Add missing global_data declaration in tables

Simon Glass sjg at chromium.org
Thu Nov 5 14:24:10 CET 2020


This file needs to use the global data pointer. Add the required
declaration.

This is a fixup patch for the following:

   09218442ca7 x86: Allow putting some tables in the bloblist

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/x86/lib/tables.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 8dc07868c1f..c4007fa4866 100644
--- a/arch/x86/lib/tables.c
+++ b/arch/x86/lib/tables.c
@@ -14,6 +14,8 @@
 #include <asm/tables.h>
 #include <asm/coreboot_tables.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /**
  * Function prototype to write a specific configuration table
  *
-- 
2.29.1.341.ge80a0c044ae-goog



More information about the U-Boot mailing list