diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-09-05 03:32:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-08 04:03:58 -0400 |
commit | db1e031401c6abab983919e882916d028f3b385e (patch) | |
tree | 463be2af999e4748a18674bacdf284aaa1439742 | |
parent | 530e5c827182a7a5322c55276b0617fd06874c24 (diff) |
x86/headers: Unify 'struct sigcontext_ia32' and 'struct sigcontext_32'
The two structures are identical - merge them and keep the
legacy name as a define.
Acked-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1441438363-9999-13-git-send-email-mingo@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/sigframe.h | 1 | ||||
-rw-r--r-- | arch/x86/include/uapi/asm/sigcontext.h | 2 | ||||
-rw-r--r-- | arch/x86/include/uapi/asm/sigcontext32.h | 26 |
3 files changed, 2 insertions, 27 deletions
diff --git a/arch/x86/include/asm/sigframe.h b/arch/x86/include/asm/sigframe.h index 5ff020a65e1b..98f04018663a 100644 --- a/arch/x86/include/asm/sigframe.h +++ b/arch/x86/include/asm/sigframe.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #ifdef CONFIG_X86_32 | 9 | #ifdef CONFIG_X86_32 |
10 | #define sigframe_ia32 sigframe | 10 | #define sigframe_ia32 sigframe |
11 | #define rt_sigframe_ia32 rt_sigframe | 11 | #define rt_sigframe_ia32 rt_sigframe |
12 | #define sigcontext_ia32 sigcontext | ||
13 | #define ucontext_ia32 ucontext | 12 | #define ucontext_ia32 ucontext |
14 | #else /* !CONFIG_X86_32 */ | 13 | #else /* !CONFIG_X86_32 */ |
15 | 14 | ||
diff --git a/arch/x86/include/uapi/asm/sigcontext.h b/arch/x86/include/uapi/asm/sigcontext.h index d0def259d545..592bfafd5cb2 100644 --- a/arch/x86/include/uapi/asm/sigcontext.h +++ b/arch/x86/include/uapi/asm/sigcontext.h | |||
@@ -223,6 +223,8 @@ struct sigcontext_32 { | |||
223 | __u32 cr2; | 223 | __u32 cr2; |
224 | }; | 224 | }; |
225 | 225 | ||
226 | #define sigcontext_ia32 sigcontext_32 | ||
227 | |||
226 | struct sigcontext_64 { | 228 | struct sigcontext_64 { |
227 | __u64 r8; | 229 | __u64 r8; |
228 | __u64 r9; | 230 | __u64 r9; |
diff --git a/arch/x86/include/uapi/asm/sigcontext32.h b/arch/x86/include/uapi/asm/sigcontext32.h index 06c749b40263..257fbb3baaa7 100644 --- a/arch/x86/include/uapi/asm/sigcontext32.h +++ b/arch/x86/include/uapi/asm/sigcontext32.h | |||
@@ -5,30 +5,4 @@ | |||
5 | 5 | ||
6 | #include <asm/sigcontext.h> | 6 | #include <asm/sigcontext.h> |
7 | 7 | ||
8 | /* 32-bit compat sigcontext: */ | ||
9 | struct sigcontext_ia32 { | ||
10 | __u16 gs, __gsh; | ||
11 | __u16 fs, __fsh; | ||
12 | __u16 es, __esh; | ||
13 | __u16 ds, __dsh; | ||
14 | __u32 di; | ||
15 | __u32 si; | ||
16 | __u32 bp; | ||
17 | __u32 sp; | ||
18 | __u32 bx; | ||
19 | __u32 dx; | ||
20 | __u32 cx; | ||
21 | __u32 ax; | ||
22 | __u32 trapno; | ||
23 | __u32 err; | ||
24 | __u32 ip; | ||
25 | __u16 cs, __csh; | ||
26 | __u32 flags; | ||
27 | __u32 sp_at_signal; | ||
28 | __u16 ss, __ssh; | ||
29 | __u32 fpstate; /* Pointer to 'struct _fpstate_32' */ | ||
30 | __u32 oldmask; | ||
31 | __u32 cr2; | ||
32 | }; | ||
33 | |||
34 | #endif /* _ASM_X86_SIGCONTEXT32_H */ | 8 | #endif /* _ASM_X86_SIGCONTEXT32_H */ |