From 7ad2c9030a69d5242930182216a4cdda7a20902a Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 26 Feb 2021 09:15:18 +0900 Subject: [PATCH] One more change for Cortex-M3/M4 asm for shorter result. Signed-off-by: NIIBE Yutaka --- chopstx-cortex-m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chopstx-cortex-m.c b/chopstx-cortex-m.c index 82a91a9..fb7caa4 100644 --- a/chopstx-cortex-m.c +++ b/chopstx-cortex-m.c @@ -559,7 +559,7 @@ svc (void) "mrs r6, PSP\n\t" /* r13(=SP) in user space. */ "stm r1!, {r2, r3, r4, r5, r6}\n\t" "ldr r0, [r6]\n\t" - "sub r1, #56\n\t" + "subs r1, #56\n\t" "str r1, [r6]" : "=r" (tp_next) : /* no input */