Svc handler to SMC call

怎甘沉沦 提交于 2019-11-30 16:04:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!