summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-06-26 10:05:14 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-06-27 16:43:52 +0000
commit16b479757907976e03f70542018f81b01d71acc6 (patch)
tree56add24fa570fb1c33ca108876d1ca0502850e41 /src
parent9f601f405d3241e41411c7373ed0f683f58706f0 (diff)
arch/x86/mpspec: Use uintptr_t for mpc_apicaddr
Change-Id: I6cc2b3947a2c79e8962985e035e7cc74c2deb307 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83215 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/include/arch/smp/mpspec.h2
-rw-r--r--src/arch/x86/mpspec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/include/arch/smp/mpspec.h b/src/arch/x86/include/arch/smp/mpspec.h
index 80ae7e8db4..ee5e0210e5 100644
--- a/src/arch/x86/include/arch/smp/mpspec.h
+++ b/src/arch/x86/include/arch/smp/mpspec.h
@@ -102,7 +102,7 @@ struct mpc_config_ioapic {
u8 mpc_apicver;
u8 mpc_flags;
#define MPC_APIC_USABLE 0x01
- void *mpc_apicaddr;
+ uintptr_t mpc_apicaddr;
} __packed;
struct mpc_config_intsrc {
diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c
index d6f0cd5be1..fde2ffadaa 100644
--- a/src/arch/x86/mpspec.c
+++ b/src/arch/x86/mpspec.c
@@ -215,7 +215,7 @@ static void smp_write_ioapic(struct mp_config_table *mc,
mpc->mpc_apicid = id;
mpc->mpc_apicver = ver;
mpc->mpc_flags = MPC_APIC_USABLE;
- mpc->mpc_apicaddr = (void *)apicaddr;
+ mpc->mpc_apicaddr = apicaddr;
smp_add_mpc_entry(mc, sizeof(*mpc));
}