aboutsummaryrefslogtreecommitdiff
path: root/src/os/signal/sig.s
blob: f54e6ff9c032389a51f83bbf851d811192234d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2012 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Assembly to get into package runtime without using exported symbols.

// +build amd64 amd64p32 arm 386 ppc64 ppc64le

#include "textflag.h"

#ifdef GOARCH_arm
#define JMP B
#endif
#ifdef GOARCH_ppc64
#define JMP BR
#endif
#ifdef GOARCH_ppc64le
#define JMP BR
#endif

TEXT ·signal_disable(SB),NOSPLIT,$0
	JMP runtime·signal_disable(SB)

TEXT ·signal_enable(SB),NOSPLIT,$0
	JMP runtime·signal_enable(SB)

TEXT ·signal_ignore(SB),NOSPLIT,$0
	JMP runtime·signal_ignore(SB)

TEXT ·signal_recv(SB),NOSPLIT,$0
	JMP runtime·signal_recv(SB)