diff options
Diffstat (limited to 'src/runtime/wincallback.go')
| -rw-r--r-- | src/runtime/wincallback.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/wincallback.go b/src/runtime/wincallback.go index 9ec2027f97..14847db3fd 100644 --- a/src/runtime/wincallback.go +++ b/src/runtime/wincallback.go @@ -23,6 +23,8 @@ func genasm386Amd64() { //go:build 386 || amd64 +#include "textflag.h" + // runtime·callbackasm is called by external code to // execute Go implemented callback function. It is not // called from the start, instead runtime·compilecallback @@ -31,7 +33,7 @@ func genasm386Amd64() { // CALL instruction in runtime·callbackasm. This determines // which Go callback function is executed later on. -TEXT runtime·callbackasm(SB),7,$0 +TEXT runtime·callbackasm(SB),NOSPLIT|NOFRAME,$0 `) for i := 0; i < maxCallback; i++ { buf.WriteString("\tCALL\truntime·callbackasm1(SB)\n") |
