]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/asm_amd64.s
[dev.garbage] all: merge default (f38460037b72) into dev.garbage
[gostls13.git] / src / runtime / asm_amd64.s
index 5d176575c3a3f58c91f9aff2b8521fa2e841e86c..1aa2d71a80c3615b839c8391822cb7ce35600712 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