diff options
Diffstat (limited to 'src/runtime/asm_arm.s')
| -rw-r--r-- | src/runtime/asm_arm.s | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index caa96cc4b3..306984e8f7 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -358,10 +358,12 @@ switch: RET noswitch: + // Using a tail call here cleans up tracebacks since we won't stop + // at an intermediate systemstack. MOVW R0, R7 MOVW 0(R0), R0 - BL (R0) - RET + MOVW.P 4(R13), R14 // restore LR + B (R0) /* * support for morestack |
