]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/asm_386.s
[dev.garbage] all: merge default (f38460037b72) into dev.garbage
[gostls13.git] / src / runtime / asm_386.s
index d456e6bca4063a4409fface61ea8a5467fccc02a..501e64b094393e662251e5666744feb68fa500fd 100644 (file)
@@ -2284,3 +2284,9 @@ TEXT _cgo_topofstack(SB),NOSPLIT,$0
        MOVL    m_curg(AX), AX
        MOVL    (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