ironlake: Fix compilation on x86_64
Use correct datasize to compile on x86_64. Tested on Lenovo T410 with additional x86_64 patches. Change-Id: I213b2b1c5de174b5c14b67d1b437d19c656d13fd Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37371 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
@@ -150,7 +150,7 @@ void southbridge_update_gnvs(u8 apm_cnt, int *smm_done)
|
||||
smi_apmc_find_state_save(apm_cnt);
|
||||
if (state) {
|
||||
/* EBX in the state save contains the GNVS pointer */
|
||||
gnvs = (struct global_nvs *)((u32)state->rbx);
|
||||
gnvs = (struct global_nvs *)(uintptr_t)((u32)state->rbx);
|
||||
if (smm_points_to_smram(gnvs, sizeof(*gnvs))) {
|
||||
printk(BIOS_ERR, "SMI#: ERROR: GNVS overlaps SMM\n");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user