summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-10-28 08:18:59 +0100
committerElyes Haouas <ehaouas@noos.fr>2024-10-29 01:41:41 +0000
commit686b36bab86f49a796f07aaa9d73a9305461969a (patch)
treef7d14b72f9cd684bb7c713a8050424e7f9c09229 /src/drivers
parent9dc9ef3082714b98ed14f37d6e82f96b02ef5946 (diff)
tree: Fix cast an object of type 'nullptr_t' to 'uintptr_t' error
This to fix the error when using C23: cannot cast an object of type 'nullptr_t' to 'uintptr_t' (aka 'unsigned long') return (uintptr_t)NULL; ^ Change-Id: Ibdc8794513a508fc61a5046692f854183c36b781 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84893 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/fsp2_0/temp_ram_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/fsp2_0/temp_ram_exit.c b/src/drivers/intel/fsp2_0/temp_ram_exit.c
index 86cc2163e9..5b8247cecb 100644
--- a/src/drivers/intel/fsp2_0/temp_ram_exit.c
+++ b/src/drivers/intel/fsp2_0/temp_ram_exit.c
@@ -29,7 +29,7 @@ static void fsp_temp_ram_exit(void)
temp_ram_exit = (void *)(uintptr_t)(hdr.image_base + hdr.temp_ram_exit_entry_offset);
printk(BIOS_DEBUG, "Calling TempRamExit: %p\n", temp_ram_exit);
if (ENV_X86_64 && CONFIG(PLATFORM_USES_FSP2_X86_32))
- status = protected_mode_call_1arg(temp_ram_exit, (uintptr_t)NULL);
+ status = protected_mode_call_1arg(temp_ram_exit, 0);
else
status = temp_ram_exit(NULL);