diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-04-19 21:44:22 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-05-06 22:15:04 +0000 |
commit | 4c684877d13ba634b3f8ebfaf51fc386d031e882 (patch) | |
tree | de4a9ad947963c5ac19fce5b6d006d20814dd557 /src/soc/amd/common/block/cpu/smm | |
parent | eb8bbb6c041b360b0a463c56b820ef372d1bac50 (diff) |
soc/amd/picasso: Use read*p
This avoids compiler warnings on 64bit builds that complains about
casting pointer to non matching integer size.
Change-Id: I29fdb73ae1c0508796a21b650bf4fd1ac6688021
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63726
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/common/block/cpu/smm')
-rw-r--r-- | src/soc/amd/common/block/cpu/smm/smi_apmc_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/cpu/smm/smi_apmc_helper.c b/src/soc/amd/common/block/cpu/smm/smi_apmc_helper.c index 576c9180c8..7b3afc2b81 100644 --- a/src/soc/amd/common/block/cpu/smm/smi_apmc_helper.c +++ b/src/soc/amd/common/block/cpu/smm/smi_apmc_helper.c @@ -82,5 +82,5 @@ void handle_smi_store(void) reg_ebx = io_smi->rbx; /* drivers/smmstore/smi.c */ - io_smi->rax = smmstore_exec(sub_command, (void *)reg_ebx); + io_smi->rax = smmstore_exec(sub_command, (void *)(uintptr_t)reg_ebx); } |