]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/asm_amd64.s
[dev.power64] all: merge default into dev.power64
[gostls13.git] / src / runtime / asm_amd64.s
index ac9c58cf3e2cce8e23304fdd418f88af7aea9eab..2871a172af431d667c6d0502ffbd7eda44ee18f3 100644 (file)
@@ -2229,3 +2229,9 @@ TEXT _cgo_topofstack(SB),NOSPLIT,$0
        MOVQ    m_curg(AX), AX
        MOVQ    (g_stack+stack_hi)(AX), AX
        RET
+
+// The top-most function running on a goroutine
+// returns to goexit+PCQuantum.
+TEXT runtime·goexit(SB),NOSPLIT,$0-0
+       BYTE    $0x90   // NOP
+       CALL    runtime·goexit1(SB)    // does not return