Eliminate use of pointers in coreboot table
Because pointers can be 32bit or 64bit big,
using them in the coreboot table requires the
OS and the firmware to operate in the same mode
which is not always the case. Hence, use 64bit
for all pointers stored in the coreboot table.
Guess we'll have to fix this up once we port to
the first 128bit machines.
Change-Id: I46fc1dad530e5230986f7aa5740595428ede4f93
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/3115
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
diff --git a/payloads/libpayload/include/coreboot_tables.h b/payloads/libpayload/include/coreboot_tables.h
index 02c9449..3889ede 100644
--- a/payloads/libpayload/include/coreboot_tables.h
+++ b/payloads/libpayload/include/coreboot_tables.h
@@ -188,7 +188,7 @@
struct cb_vdat {
uint32_t tag;
uint32_t size; /* size of the entire entry */
- void *vdat_addr;
+ uint64_t vdat_addr;
uint32_t vdat_size;
};
@@ -198,7 +198,7 @@
struct cb_cbmem_tab {
uint32_t tag;
uint32_t size;
- void *cbmem_tab;
+ uint64_t cbmem_tab;
};
#define CB_TAG_VBNV 0x0019
@@ -213,7 +213,7 @@
struct cb_vboot_handoff {
uint32_t tag;
uint32_t size;
- void *vboot_handoff_addr;
+ uint64_t vboot_handoff_addr;
uint32_t vboot_handoff_size;
};