Skip to content
Snippets Groups Projects
Commit dce785cc authored by Romain Goyet's avatar Romain Goyet Committed by Damien George
Browse files

py/nlrthumb: Add support for iOS where the C func is _nlr_push_tail.

parent 8977c7eb
No related branches found
No related tags found
No related merge requests found
...@@ -71,9 +71,13 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) { ...@@ -71,9 +71,13 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) {
"bx r1 \n" // do the rest in C "bx r1 \n" // do the rest in C
".align 2 \n" ".align 2 \n"
"nlr_push_tail_var: .word nlr_push_tail \n" "nlr_push_tail_var: .word nlr_push_tail \n"
#else
#if defined(__APPLE__) || defined(__MACH__)
"b _nlr_push_tail \n" // do the rest in C
#else #else
"b nlr_push_tail \n" // do the rest in C "b nlr_push_tail \n" // do the rest in C
#endif #endif
#endif
); );
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)) #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment