github.com/ader1990/go@v0.0.0-20140630135419-8c24447fa791/src/pkg/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 "../../../cmd/ld/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