summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2026-09-01 16:26:05 +0200
committerYann Gautier <yann.gautier@st.com>2026-09-07 13:41:30 +0200
commit04af9c91b343f0e4ff747b1aac6af1095a3c8a9c (patch)
treeb2cdc3eb1a5e32159135aea50fab0f950877835a /include
parentf7ec061461e41a58c9abf60d4acc70ffa5b95f1e (diff)
downloadarm-trusted-firmware-04af9c91b343f0e4ff747b1aac6af1095a3c8a9c.tar.gz
arm-trusted-firmware-04af9c91b343f0e4ff747b1aac6af1095a3c8a9c.zip
fix(el3-runtime): add some missing prototypes
When compiling with -Werror=missing-prototypes, 2 functions are missing their prototypes in header file: handler_interrupt_exception() and handler_sync_exception(). Add them in runtime_svc.h. The stdint.h include is also added to context_el1.h, or else there are compilation errors for uint64_t being undefined. And it is moved before ENABLE_FEAT_D128 flag in sysreg128.h, as uint64_t is also used in the #else part. Change-Id: I88177af229430b19715557c39da64ae0780d43d4 Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'include')
-rw-r--r--include/common/runtime_svc.h3
-rw-r--r--include/lib/el3_runtime/context_el1.h2
-rw-r--r--include/lib/extensions/sysreg128.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/include/common/runtime_svc.h b/include/common/runtime_svc.h
index 26e8d6f28..0547adf2c 100644
--- a/include/common/runtime_svc.h
+++ b/include/common/runtime_svc.h
@@ -7,6 +7,7 @@
#ifndef RUNTIME_SVC_H
#define RUNTIME_SVC_H
+#include <context.h>
#include <common/bl_common.h> /* to include exception types */
#include <lib/cassert.h>
#include <lib/utils_def.h>
@@ -125,6 +126,8 @@ static inline uint32_t get_unique_oen_from_smc_fid(uint32_t fid)
/*******************************************************************************
* Function & variable prototypes
******************************************************************************/
+void handler_interrupt_exception(cpu_context_t *ctx);
+void handler_sync_exception(cpu_context_t *ctx);
void runtime_svc_init(void);
uintptr_t handle_runtime_svc(uint32_t smc_fid, void *cookie, void *handle,
unsigned int flags);
diff --git a/include/lib/el3_runtime/context_el1.h b/include/lib/el3_runtime/context_el1.h
index f320d2c5f..3011f0c10 100644
--- a/include/lib/el3_runtime/context_el1.h
+++ b/include/lib/el3_runtime/context_el1.h
@@ -11,6 +11,8 @@
#ifndef __ASSEMBLER__
+#include <stdint.h>
+
/*******************************************************************************
* EL1 Registers:
* AArch64 EL1 system register context structure for preserving the
diff --git a/include/lib/extensions/sysreg128.h b/include/lib/extensions/sysreg128.h
index 8854856b6..433633323 100644
--- a/include/lib/extensions/sysreg128.h
+++ b/include/lib/extensions/sysreg128.h
@@ -9,9 +9,9 @@
#ifndef __ASSEMBLER__
-#if ENABLE_FEAT_D128
#include <stdint.h>
+#if ENABLE_FEAT_D128
typedef uint128_t sysreg_t;
#define PAR_EL1_D128 (((sysreg_t)(1ULL)) << (64))