|
@@ -1,18 +1,11 @@
|
|
-#ifndef _ASMPPC_SIGNAL_H
|
|
|
|
-#define _ASMPPC_SIGNAL_H
|
|
|
|
|
|
+#ifndef _ASM_POWERPC_SIGNAL_H
|
|
|
|
+#define _ASM_POWERPC_SIGNAL_H
|
|
|
|
|
|
-#ifdef __KERNEL__
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/types.h>
|
|
-#endif /* __KERNEL__ */
|
|
|
|
-
|
|
|
|
-/* Avoid too many header ordering problems. */
|
|
|
|
-struct siginfo;
|
|
|
|
-
|
|
|
|
-/* Most things should be clean enough to redefine this at will, if care
|
|
|
|
- is taken to make libc match. */
|
|
|
|
|
|
+#include <linux/config.h>
|
|
|
|
|
|
#define _NSIG 64
|
|
#define _NSIG 64
|
|
-#define _NSIG_BPW 32
|
|
|
|
|
|
+#define _NSIG_BPW BITS_PER_LONG
|
|
#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
|
|
#define _NSIG_WORDS (_NSIG / _NSIG_BPW)
|
|
|
|
|
|
typedef unsigned long old_sigset_t; /* at least 32 bits */
|
|
typedef unsigned long old_sigset_t; /* at least 32 bits */
|
|
@@ -77,19 +70,19 @@ typedef struct {
|
|
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
|
|
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
|
|
* Unix names RESETHAND and NODEFER respectively.
|
|
* Unix names RESETHAND and NODEFER respectively.
|
|
*/
|
|
*/
|
|
-#define SA_NOCLDSTOP 0x00000001
|
|
|
|
-#define SA_NOCLDWAIT 0x00000002
|
|
|
|
-#define SA_SIGINFO 0x00000004
|
|
|
|
-#define SA_ONSTACK 0x08000000
|
|
|
|
-#define SA_RESTART 0x10000000
|
|
|
|
-#define SA_NODEFER 0x40000000
|
|
|
|
-#define SA_RESETHAND 0x80000000
|
|
|
|
|
|
+#define SA_NOCLDSTOP 0x00000001U
|
|
|
|
+#define SA_NOCLDWAIT 0x00000002U
|
|
|
|
+#define SA_SIGINFO 0x00000004U
|
|
|
|
+#define SA_ONSTACK 0x08000000U
|
|
|
|
+#define SA_RESTART 0x10000000U
|
|
|
|
+#define SA_NODEFER 0x40000000U
|
|
|
|
+#define SA_RESETHAND 0x80000000U
|
|
|
|
|
|
#define SA_NOMASK SA_NODEFER
|
|
#define SA_NOMASK SA_NODEFER
|
|
#define SA_ONESHOT SA_RESETHAND
|
|
#define SA_ONESHOT SA_RESETHAND
|
|
-#define SA_INTERRUPT 0x20000000 /* dummy -- ignored */
|
|
|
|
|
|
+#define SA_INTERRUPT 0x20000000u /* dummy -- ignored */
|
|
|
|
|
|
-#define SA_RESTORER 0x04000000
|
|
|
|
|
|
+#define SA_RESTORER 0x04000000U
|
|
|
|
|
|
/*
|
|
/*
|
|
* sigaltstack controls
|
|
* sigaltstack controls
|
|
@@ -127,10 +120,13 @@ typedef struct sigaltstack {
|
|
} stack_t;
|
|
} stack_t;
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
#ifdef __KERNEL__
|
|
-#include <asm/sigcontext.h>
|
|
|
|
|
|
+struct pt_regs;
|
|
|
|
+extern int do_signal(sigset_t *oldset, struct pt_regs *regs);
|
|
|
|
+extern int do_signal32(sigset_t *oldset, struct pt_regs *regs);
|
|
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
|
|
#define ptrace_signal_deliver(regs, cookie) do { } while (0)
|
|
#endif /* __KERNEL__ */
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
+#ifndef __powerpc64__
|
|
/*
|
|
/*
|
|
* These are parameters to dbg_sigreturn syscall. They enable or
|
|
* These are parameters to dbg_sigreturn syscall. They enable or
|
|
* disable certain debugging things that can be done from signal
|
|
* disable certain debugging things that can be done from signal
|
|
@@ -149,5 +145,6 @@ struct sig_dbg_op {
|
|
|
|
|
|
/* Enable or disable branch tracing. The value sets the state. */
|
|
/* Enable or disable branch tracing. The value sets the state. */
|
|
#define SIG_DBG_BRANCH_TRACING 2
|
|
#define SIG_DBG_BRANCH_TRACING 2
|
|
|
|
+#endif /* ! __powerpc64__ */
|
|
|
|
|
|
-#endif
|
|
|
|
|
|
+#endif /* _ASM_POWERPC_SIGNAL_H */
|