summaryrefslogtreecommitdiff
path: root/firmware/asm/arm/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/asm/arm/thread.c')
-rw-r--r--firmware/asm/arm/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/asm/arm/thread.c b/firmware/asm/arm/thread.c
index bd9f950616..30df56e0d9 100644
--- a/firmware/asm/arm/thread.c
+++ b/firmware/asm/arm/thread.c
@@ -73,7 +73,7 @@ static inline void store_context(void* addr)
73static inline void load_context(const void* addr) 73static inline void load_context(const void* addr)
74{ 74{
75 asm volatile( 75 asm volatile(
76 ".syntax unified \n" 76 BEGIN_ARM_ASM_SYNTAX_UNIFIED
77 "ldr r0, [%0, #40] \n" /* Load start pointer */ 77 "ldr r0, [%0, #40] \n" /* Load start pointer */
78 "cmp r0, #0 \n" /* Check for NULL */ 78 "cmp r0, #0 \n" /* Check for NULL */
79 79
@@ -86,6 +86,7 @@ static inline void load_context(const void* addr)
86#endif 86#endif
87 87
88 "ldmia %0, { r4-r11, sp, lr } \n" /* Load regs r4 to r14 from context */ 88 "ldmia %0, { r4-r11, sp, lr } \n" /* Load regs r4 to r14 from context */
89 END_ARM_ASM_SYNTAX_UNIFIED
89 : : "r" (addr) : "r0" /* only! */ 90 : : "r" (addr) : "r0" /* only! */
90 ); 91 );
91} 92}