We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 860eeee commit dd376a2Copy full SHA for dd376a2
py/nlrthumb.c
@@ -67,7 +67,14 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) {
67
"str lr, [r0, #8] \n" // store lr into nlr_buf
68
#endif
69
70
+#if defined(__ARM_ARCH_6M__)
71
+ "ldr r1, nlr_push_tail_var \n"
72
+ "bx r1 \n" // do the rest in C
73
+ ".align 2 \n"
74
+ "nlr_push_tail_var: .word nlr_push_tail \n"
75
+#else
76
"b nlr_push_tail \n" // do the rest in C
77
+#endif
78
);
79
80
return 0; // needed to silence compiler warning
0 commit comments