]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/asm_amd64p32.s
[dev.garbage] all: merge default (f38460037b72) into dev.garbage
[gostls13.git] / src / runtime / asm_amd64p32.s
index 2b2155753e9a414b20ce6d3e5caae67ba3e2fca2..153564b14ea9eba97e74df106059099ed700f60e 100644 (file)
@@ -1079,3 +1079,9 @@ TEXT runtime·fastrand1(SB), NOSPLIT, $0-4
 TEXT runtime·return0(SB), NOSPLIT, $0
        MOVL    $0, 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