cbmem: replace pointer type by uint64_t
Since coreboot is compiled into 32bit code, and userspace might be 32 or 64bit, putting a pointer into the coreboot table is not viable. Instead, use a uint64_t, which is always big enough for a pointer, even if we decide to move to a 64bit coreboot at some point. Change-Id: Ic974cdcbc9b95126dd1e07125f3e9dce104545f5 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2135 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
committed by
Ronald G. Minnich
parent
ea22796eda
commit
b8ad224468
@@ -229,7 +229,7 @@ struct lb_cbmem_ref {
|
||||
uint32_t tag;
|
||||
uint32_t size;
|
||||
|
||||
void *cbmem_addr;
|
||||
uint64_t cbmem_addr;
|
||||
};
|
||||
|
||||
#define LB_TAG_VBNV 0x0019
|
||||
|
Reference in New Issue
Block a user