diff options
Diffstat (limited to 'core/arch/arm/include/sm/sm.h')
-rw-r--r-- | core/arch/arm/include/sm/sm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/arch/arm/include/sm/sm.h b/core/arch/arm/include/sm/sm.h index 6368359..3446506 100644 --- a/core/arch/arm/include/sm/sm.h +++ b/core/arch/arm/include/sm/sm.h @@ -29,6 +29,7 @@ #ifndef SM_SM_H #define SM_SM_H +#include <compiler.h> #include <types_ext.h> struct sm_mode_regs { @@ -120,4 +121,17 @@ void *sm_get_sp(void); */ void sm_init(vaddr_t stack_pointer); +#ifndef CFG_SM_PLATFORM_HANDLER +/* + * Returns false if we handled the monitor service and should now return + * back to the non-secure state + */ +static inline bool sm_platform_handler(__unused struct sm_ctx *ctx) +{ + return true; +} +#else +bool sm_platform_handler(struct sm_ctx *ctx); +#endif + #endif /*SM_SM_H*/ |