diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2020-12-08 10:27:26 +0100 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-12-10 07:25:43 +0000 |
commit | 547e5572cf89995e780e54ac0cccbe6e592335f0 (patch) | |
tree | 52ef21dbffd46d2ff1dc4d5ba0510d9a7885ef4b /src | |
parent | d147d43617ec8ca8d90774961955fb4b1f193b61 (diff) |
arch/x86/smbios.c: Fix compilation on x86_64
Change-Id: I07780f9a6fa577d7b6bb63884071a7e1ce1bdbfa
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48454
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/smbios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index aabeb1046c..aaf989da19 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -414,7 +414,7 @@ static int smbios_write_type0(unsigned long *current, int handle) #if CONFIG(CHROMEOS) && CONFIG(HAVE_ACPI_TABLES) u32 version_offset = (u32)smbios_string_table_len(t->eos); /* SMBIOS offsets start at 1 rather than 0 */ - chromeos_get_chromeos_acpi()->vbt10 = (u32)t->eos + (version_offset - 1); + chromeos_get_chromeos_acpi()->vbt10 = (uintptr_t)t->eos + (version_offset - 1); #endif t->bios_version = smbios_add_string(t->eos, get_bios_version()); uint32_t rom_size = CONFIG_ROM_SIZE; |