技术手册上说 "use software interrupt to enter supervisor mode", 又给出了这样一张表格(这是其中一行):
—————————————————————————————————–
Vector Offset Addr Exception Mode on entry I bit state of entry F bit on entry
8h Software interrupt Supervisor Set Unchanged
——————————————————————————————————
我大概知道使用汇编语言的SWI指令来产生软中断,但具体该如何写才能让处理器进入Supervisor模式呢?
谢谢解答!
Tony Tang:
可以参考Startware里的代码:
\AM1808_StarterWare_1_00_02_02\system_config\armv5\cgt\cp15.c