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 arm64 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 runtimesignal_disable(SB) 23 24 TEXT signal_enable(SB),NOSPLIT,$0 25 JMP runtimesignal_enable(SB) 26 27 TEXT signal_ignore(SB),NOSPLIT,$0 28 JMP runtimesignal_ignore(SB) 29 30 TEXT signal_recv(SB),NOSPLIT,$0 31 JMP runtimesignal_recv(SB) 32 33