8000 cpu/arm7: Fix undefined behavior based on invalid assembly by Teufelchen1 · Pull Request #19619 · RIOT-OS/RIOT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

cpu/arm7: Fix undefined behavior based on invalid assembly #19619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cpu/arm7_common/common.s
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ task_return:

/* Restore all registers, PC & cpsr */
ldmfd r0, {r0-lr}^
/* According to ARM Architecture Reference Manual DDI 0100I,
* ldms which affect banked registers must be followed by a nop.
*/
nop

/* return to task */
movs pc, lr
Expand Down
0