Skip to content

Commit db1e031

Browse files
committed
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>
1 parent 530e5c8 commit db1e031

3 files changed

Lines changed: 2 additions & 27 deletions

File tree

arch/x86/include/asm/sigframe.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#ifdef CONFIG_X86_32
1010
#define sigframe_ia32 sigframe
1111
#define rt_sigframe_ia32 rt_sigframe
12-
#define sigcontext_ia32 sigcontext
1312
#define ucontext_ia32 ucontext
1413
#else /* !CONFIG_X86_32 */
1514

arch/x86/include/uapi/asm/sigcontext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ struct sigcontext_32 {
223223
__u32 cr2;
224224
};
225225

226+
#define sigcontext_ia32 sigcontext_32
227+
226228
struct sigcontext_64 {
227229
__u64 r8;
228230
__u64 r9;

arch/x86/include/uapi/asm/sigcontext32.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,4 @@
55

66
#include <asm/sigcontext.h>
77

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-
348
#endif /* _ASM_X86_SIGCONTEXT32_H */

0 commit comments

Comments
 (0)