arch: arm: aarch32: cortex_a_r: Correct syntax for srs

The writeback specification should be after the register, not after the
mode according to the documentation at

Link: https://developer.arm.com/documentation/dui0489/h/arm-and-thumb-instructions/srs

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
Bradley Bolen 2020-12-17 21:14:09 -05:00 committed by Carles Cufí
parent 18ec84803c
commit c96ae584bf

View file

@ -61,7 +61,7 @@ SECTION_SUBSEC_FUNC(TEXT, __exc, z_arm_undef_instruction)
* Store r0-r3, r12, lr, lr_und and spsr_und into the stack to
* construct an exception stack frame.
*/
srsdb sp, #MODE_UND!
srsdb sp!, #MODE_UND
stmfd sp, {r0-r3, r12, lr}^
sub sp, #24
@ -95,7 +95,7 @@ SECTION_SUBSEC_FUNC(TEXT, __exc, z_arm_prefetch_abort)
* Store r0-r3, r12, lr, lr_abt and spsr_abt into the stack to
* construct an exception stack frame.
*/
srsdb sp, #MODE_ABT!
srsdb sp!, #MODE_ABT
stmfd sp, {r0-r3, r12, lr}^
sub sp, #24
@ -130,7 +130,7 @@ SECTION_SUBSEC_FUNC(TEXT, __exc, z_arm_data_abort)
* Store r0-r3, r12, lr, lr_abt and spsr_abt into the stack to
* construct an exception stack frame.
*/
srsdb sp, #MODE_ABT!
srsdb sp!, #MODE_ABT
stmfd sp, {r0-r3, r12, lr}^
sub sp, #24