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.