Svc handler to SMC call

2019-02-11 02:24发布

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条回答
倾城 Initia
2楼-- · 2019-02-11 02:37

Examples can be found in the Linux source tree for the OMAP2 platform.

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.

查看更多
登录 后发表回答