问题
how to write an svc handler in C to call SMC(monitor mode) instruction to switch to monitor mode for arm cortex a9? i.e from supervisor mode to monitor mode what all needs to be done in svc handler,how to write the same in C. Detailed answers appreciated...
回答1:
Examples can be found in the Linux source tree for the OMAP2 platform.
- omap-smc.S
- omap-secure.h
- omap-secure.c
See also: LWN's KS2012: ARM: Secure monitor API Kernel summit 2012 notes on ARM SMC modes.
Basically, what ever interface people dream up for an SWI
or SVC
interface can be used by the SMC
interface. Otherwise, this question is impossible to answer specifically.
来源:https://stackoverflow.com/questions/15052926/svc-handler-to-smc-call