summaryrefslogtreecommitdiffstats
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)
static inline void load_context(const void* addr)
{
asm volatile(
- ".syntax unified \n"
+ BEGIN_ARM_ASM_SYNTAX_UNIFIED
"ldr r0, [%0, #40] \n" /* Load start pointer */
"cmp r0, #0 \n" /* Check for NULL */
@@ -86,6 +86,7 @@ static inline void load_context(const void* addr)
#endif
"ldmia %0, { r4-r11, sp, lr } \n" /* Load regs r4 to r14 from context */
+ END_ARM_ASM_SYNTAX_UNIFIED
: : "r" (addr) : "r0" /* only! */
);
}