Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/65880 )
Change subject: drivers/elog/gsmi.c: Fix compiling for 64bit ......................................................................
drivers/elog/gsmi.c: Fix compiling for 64bit
Change-Id: Ic8e04ae043145a3633c0b8379a797724f95fd7ea Signed-off-by: Arthur Heymans arthur@aheymans.xyz Reviewed-on: https://review.coreboot.org/c/coreboot/+/65880 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Felix Held felix-coreboot@felixheld.de --- M src/drivers/elog/gsmi.c 1 file changed, 17 insertions(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Felix Held: Looks good to me, approved
diff --git a/src/drivers/elog/gsmi.c b/src/drivers/elog/gsmi.c index ebdde19..36940f1 100644 --- a/src/drivers/elog/gsmi.c +++ b/src/drivers/elog/gsmi.c @@ -2,6 +2,7 @@
#include <console/console.h> #include <elog.h> +#include <stdint.h>
#define GSMI_RET_SUCCESS 0x00 #define GSMI_RET_INVALID_PARAMETER 0x82 @@ -59,7 +60,7 @@
case GSMI_CMD_SET_EVENT_LOG: /* Look for a type1 event */ - sel = (struct gsmi_set_eventlog_param *)(*param); + sel = (struct gsmi_set_eventlog_param *)(uintptr_t)(*param); if (!sel) break;
@@ -69,7 +70,7 @@ break;
/* Event structure within the data buffer */ - type1 = (struct gsmi_set_eventlog_type1 *)(sel->data_ptr); + type1 = (struct gsmi_set_eventlog_type1 *)(uintptr_t)(sel->data_ptr); if (!type1) break;
@@ -90,7 +91,7 @@
case GSMI_CMD_CLEAR_EVENT_LOG: /* Get parameter buffer even though we don't use it */ - cel = (struct gsmi_clear_eventlog_param *)(*param); + cel = (struct gsmi_clear_eventlog_param *)(uintptr_t)(*param); if (!cel) break;