aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_power64x.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/asm_power64x.s')
-rw-r--r--src/runtime/asm_power64x.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/asm_power64x.s b/src/runtime/asm_power64x.s
index 713cc5f549..a75bb8ce1e 100644
--- a/src/runtime/asm_power64x.s
+++ b/src/runtime/asm_power64x.s
@@ -980,3 +980,9 @@ TEXT runtime·return0(SB), NOSPLIT, $0
// Must obey the gcc calling convention.
TEXT _cgo_topofstack(SB),NOSPLIT,$0
MOVD R0, 26(R0)
+
+// The top-most function running on a goroutine
+// returns to goexit+PCQuantum.
+TEXT runtime·goexit(SB),NOSPLIT,$-8-0
+ MOVD R0, R0 // NOP
+ BL runtime·goexit1(SB) // does not return