mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/arm7: Fix undefined behavior based on invalid assembly
This commit is contained in:
parent
b93328d14b
commit
583a1da348
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user