github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/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 ppc64 ppc64le
     8  
     9  #include "textflag.h"
    10  
    11  #ifdef GOARCH_arm
    12  #define JMP B
    13  #endif
    14  #ifdef GOARCH_ppc64
    15  #define JMP BR
    16  #endif
    17  #ifdef GOARCH_ppc64le
    18  #define JMP BR
    19  #endif
    20  
    21  TEXT ·signal_disable(SB),NOSPLIT,$0
    22  	JMP runtime·signal_disable(SB)
    23  
    24  TEXT ·signal_enable(SB),NOSPLIT,$0
    25  	JMP runtime·signal_enable(SB)
    26  
    27  TEXT ·signal_recv(SB),NOSPLIT,$0
    28  	JMP runtime·signal_recv(SB)
    29