Patrick Rudolph submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Arthur Heymans: Looks good to me, approved Angel Pons: Looks good to me, approved
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>
---
M src/soc/intel/common/block/systemagent/systemagent_early.c
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/soc/intel/common/block/systemagent/systemagent_early.c b/src/soc/intel/common/block/systemagent/systemagent_early.c
index 53d6077..ca11ee6 100644
--- a/src/soc/intel/common/block/systemagent/systemagent_early.c
+++ b/src/soc/intel/common/block/systemagent/systemagent_early.c
@@ -95,8 +95,8 @@
base = fixed_set_resources[i].base;
index = fixed_set_resources[i].index;
if (base >> 32)
- write32((void *)(MCH_BASE_ADDRESS + index + 4), base >> 32);
- write32((void *)(MCH_BASE_ADDRESS + index), (base & 0xffffffff) | 1);
+ write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index + 4), base >> 32);
+ write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index), (base & 0xffffffff) | 1);
}
}


To view, visit change 48167. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibc8dc1cf33f594284edb82d4730967e077739c3c
Gerrit-Change-Number: 48167
Gerrit-PatchSet: 2
Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur@aheymans.xyz>
Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged