diff options
Diffstat (limited to 'src/runtime/sys_darwin_arm.s')
| -rw-r--r-- | src/runtime/sys_darwin_arm.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/sys_darwin_arm.s b/src/runtime/sys_darwin_arm.s index 5def7766b0..d59a3aaa4d 100644 --- a/src/runtime/sys_darwin_arm.s +++ b/src/runtime/sys_darwin_arm.s @@ -90,6 +90,12 @@ TEXT runtime·exit(SB),NOSPLIT,$-4 // Exit this OS thread (like pthread_exit, which eventually // calls __bsdthread_terminate). TEXT runtime·exit1(SB),NOSPLIT,$0 + // __bsdthread_terminate takes 4 word-size arguments. + // Set them all to 0. (None are an exit status.) + MOVW $0, R0 + MOVW $0, R1 + MOVW $0, R2 + MOVW $0, R3 MOVW $SYS_bsdthread_terminate, R12 SWI $0x80 MOVW $1234, R0 |
