diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-11-12 18:06:15 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-14 22:40:02 +0000 |
commit | 17e68572caeea458f7635a3cac6be3b1f2484ab8 (patch) | |
tree | b51058cce63a0b6e9ff78528d596094f0aa3bbe3 /src/soc | |
parent | 62eb94c9d3fe66b8fc0160d4a1290f6223e2f27a (diff) | |
download | coreboot-17e68572caeea458f7635a3cac6be3b1f2484ab8.tar.gz coreboot-17e68572caeea458f7635a3cac6be3b1f2484ab8.tar.bz2 coreboot-17e68572caeea458f7635a3cac6be3b1f2484ab8.zip |
soc/amd/psp_smm_gen2.c: Fix 64bit mode integer conversion
Explicitly cast integers to fix building for long mode.
Change-Id: I9f56e183563c943d1c2bd0478c41a80512b47c5e
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69507
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/amd/common/block/psp/psp_smm_gen2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/psp/psp_smm_gen2.c b/src/soc/amd/common/block/psp/psp_smm_gen2.c index f02723ad1fd0..6bf079d5c7fa 100644 --- a/src/soc/amd/common/block/psp/psp_smm_gen2.c +++ b/src/soc/amd/common/block/psp/psp_smm_gen2.c @@ -4,6 +4,7 @@ #include <amdblocks/acpimmio.h> #include <amdblocks/psp.h> #include <amdblocks/smi.h> +#include <stdint.h> void soc_fill_smm_trig_info(struct smm_trigger_info *trig) { @@ -13,8 +14,8 @@ void soc_fill_smm_trig_info(struct smm_trigger_info *trig) trig->address = (uintptr_t)acpimmio_smi + SMI_REG_SMITRIG0; trig->address_type = SMM_TRIGGER_MEM; trig->value_width = SMM_TRIGGER_DWORD; - trig->value_and_mask = ~SMITRIG0_PSP; - trig->value_or_mask = SMITRIG0_PSP; + trig->value_and_mask = (uint32_t)~SMITRIG0_PSP; + trig->value_or_mask = (uint32_t)SMITRIG0_PSP; } void soc_fill_smm_reg_info(struct smm_register_info *reg) |