soc/intel/skylake: Fix compilation under x86_64

Change-Id: I37382ab06a8f1760e955d1ec76a6a00958b05999
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48177
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Patrick Rudolph 2020-11-30 17:45:42 +01:00 committed by Patrick Rudolph
parent 484adee53e
commit 03a339126b
2 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ void acpi_create_gnvs(struct global_nvs *gnvs)
#if CONFIG(CONSOLE_CBMEM) #if CONFIG(CONSOLE_CBMEM)
/* Update the mem console pointer. */ /* Update the mem console pointer. */
gnvs->cbmc = (u32)cbmem_find(CBMEM_ID_CONSOLE); gnvs->cbmc = (u32)(uintptr_t)cbmem_find(CBMEM_ID_CONSOLE);
#endif #endif
if (CONFIG(CHROMEOS)) { if (CONFIG(CHROMEOS)) {
@ -554,7 +554,7 @@ void southbridge_inject_dsdt(const struct device *device)
/* Add it to DSDT. */ /* Add it to DSDT. */
acpigen_write_scope("\\"); acpigen_write_scope("\\");
acpigen_write_name_dword("NVSA", (u32) gnvs); acpigen_write_name_dword("NVSA", (u32) (uintptr_t)gnvs);
acpigen_pop_len(); acpigen_pop_len();
} }
} }

View File

@ -175,7 +175,7 @@ void soc_irq_settings(FSP_SIL_UPD *params)
intdeventry = ARRAY_SIZE(devintconfig); intdeventry = ARRAY_SIZE(devintconfig);
/* update irq table */ /* update irq table */
memcpy((SI_PCH_DEVICE_INTERRUPT_CONFIG *) memcpy((SI_PCH_DEVICE_INTERRUPT_CONFIG *)
(params->DevIntConfigPtr), devintconfig, intdeventry * (uintptr_t)(params->DevIntConfigPtr), devintconfig, intdeventry *
sizeof(SI_PCH_DEVICE_INTERRUPT_CONFIG)); sizeof(SI_PCH_DEVICE_INTERRUPT_CONFIG));
params->NumOfDevIntConfig = intdeventry; params->NumOfDevIntConfig = intdeventry;