My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
smc_wrapper.c File Reference
#include <sw_types.h>
#include <cpu_asm.h>
#include <cpu_data.h>
#include <system_context.h>
#include <monitor.h>
#include <unused.h>
#include <sw_config.h>

Functions

void __execute_smc (u32 smc_arg)
 smc system call implementation More...
 
void invoke_ns_kernel (void)
 SMC is called non-secure kernel is invoked. More...
 
void return_secure_api (u32 retval)
 return from secure api More...
 
void smc_nscpu_context_init (void)
 non-secure cpu context initialization More...
 

Function Documentation

void __execute_smc ( u32  smc_arg)

smc system call implementation

The function actually executes the smc instruction It is always called in privileged mode.

Parameters
smc_argsmc system call parameter
void invoke_ns_kernel ( void  )

SMC is called non-secure kernel is invoked.

Calls smc function with appropriate argument and hence non-secure kernel gets invoked on reaching the non-secure side.

void return_secure_api ( u32  retval)

return from secure api

Calls smc function with appropriate return value obtained by executing the secure api.

Parameters
retval
void smc_nscpu_context_init ( void  )

non-secure cpu context initialization