Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello forum
Operating Systems forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Internet of Things (IoT) blog
Operating Systems blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
中文社区论区
正在使用cortex m3,想确认一下ldmia/stmia这类指令在执行的过程中,是否会被其他高优先级的任务中断;
Jump...
Cancel
State
Accepted Answer
Locked
Locked
Replies
6 replies
Subscribers
7 subscribers
Views
9547 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
正在使用cortex m3,想确认一下ldmia/stmia这类指令在执行的过程中,是否会被其他高优先级的任务中断;
xb600
over 6 years ago
如题
Top replies
William Gao
over 6 years ago
+2
verified
LDM和STM执行过程会被优先级更高的中断打断以保证中断响应时间。 不过CM3会将LDM和STM的执行状态保存在EPSR的ICI field中,这样中断返回之后CM3可以从被打断的地方继续执行。
William Gao
over 6 years ago
in reply to
xb600
+2
verified
可以参考CM3的User Guide Reference Material 2.1.3 Interruptible-continuable instructions. 除了LDM STM还有PUSH POP,SDIV,UDIV。 编译器编译C语言时会自动根据情况编译出LDM和STM指令。此外你也可以用内嵌汇编的形式嵌入LDM STM指令
xb600
over 6 years ago
in reply to
William Gao
+1
verified
感谢,我通过仿真发现确实是这样。另外我想再问个问题,有哪些渠道可以查询一个命令是否可以中断呢?另外ldm和stm这种汇编是否可以用c语言实现相同的功能呢?
Parents
0
xb600
over 6 years ago
in reply to
William Gao
好的,感谢,我去看看资料。
Cancel
Up
0
Down
Cancel
Reply
0
xb600
over 6 years ago
in reply to
William Gao
好的,感谢,我去看看资料。
Cancel
Up
0
Down
Cancel
Children
No data