1
0
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:
Teufelchen1 2023-05-19 11:08:08 +02:00
parent b93328d14b
commit 583a1da348

View File

@ -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