aboutsummaryrefslogtreecommitdiff
path: root/arch/arm64/include/uapi/asm/signal.h
blob: 5053af46f66bac74671f5953a3a4bfd9573e18a5 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
 * Copyright (C) 2012 ARM Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __ASM_SIGNAL_H
#define __ASM_SIGNAL_H

/* Required for AArch32 compatibility. */
#define SA_RESTORER	0x04000000

#define MINSIGSTKSZ 5120
#define SIGSTKSZ    16384

/* For ILP32, sigset should be the same size fields as LP64 so use
   unsigned long long. */
#ifdef __ILP32__
#define __SIGSET_INNER_TYPE __extension__ unsigned long long
#define _NSIG_BPW 64

# ifdef __AARCH64EB__
#  define __SIGNAL_INNER(type, field)		\
	__extension__ struct {			\
		int __pad_##field;		\
		type field;			\
	} __attribute__((aligned(8)))
# else
#  define __SIGNAL_INNER(type, field)		\
	__extension__ struct {			\
		type field;			\
		int __pad_##field;		\
	} __attribute__((aligned(8)))
# endif

# define __SIGACTION_HANDLER(field)		\
	__SIGNAL_INNER(__sighandler_t, field)

#define __SIGACTION_FLAGS(field)		\
	__extension__ unsigned long long field

#define __SIGACTION_RESTORER(field)		\
	__SIGNAL_INNER(__sigrestore_t, field)

#endif

#include <asm-generic/signal.h>

#endif