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:
parent
2dbbb83ae4
commit
3805354ff9
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue