github.com/ccccaoqing/test@v0.0.0-20220510085219-3985d23445c0/src/os/signal/sig.s (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Assembly to get into package runtime without using exported symbols. 6 7 // +build amd64 amd64p32 arm 386 8 9 #include "textflag.h" 10 11 #ifdef GOARCH_arm 12 #define JMP B 13 #endif 14 15 TEXT ·signal_disable(SB),NOSPLIT,$0 16 JMP runtime·signal_disable(SB) 17 18 TEXT ·signal_enable(SB),NOSPLIT,$0 19 JMP runtime·signal_enable(SB) 20 21 TEXT ·signal_recv(SB),NOSPLIT,$0 22 JMP runtime·signal_recv(SB) 23