soc/intel/common/block/systemagent: Fix compilation on x86_64

Change-Id: Ibc8dc1cf33f594284edb82d4730967e077739c3c
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48167
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Patrick Rudolph 2020-11-30 13:42:24 +01:00 committed by Patrick Rudolph
parent 2dbbb83ae4
commit 3805354ff9
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ void sa_set_mch_bar(const struct sa_mmio_descriptor *fixed_set_resources,
base = fixed_set_resources[i].base; base = fixed_set_resources[i].base;
index = fixed_set_resources[i].index; index = fixed_set_resources[i].index;
if (base >> 32) if (base >> 32)
write32((void *)(MCH_BASE_ADDRESS + index + 4), base >> 32); write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index + 4), base >> 32);
write32((void *)(MCH_BASE_ADDRESS + index), (base & 0xffffffff) | 1); write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index), (base & 0xffffffff) | 1);
} }
} }