diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-09-05 10:32:33 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-09-08 11:03:56 +0300 |
commit | 3f623a5b27c150451387e358774131780dbd2407 (patch) | |
tree | c59d769cd685f16c3f7eccffcbc06e456d90b02b /arch/x86/include/uapi/asm/sigcontext32.h | |
parent | 128f8257a17a47b9a40f550cc2f36458cd8c07b0 (diff) | |
download | linux-3f623a5b27c150451387e358774131780dbd2407.tar.xz |
x86/headers: Use ABI types consistently in sigcontext*.h
Use the __u16/32/64 types we standardized on in ABI definitions
- and which most of this header was already using.
This will allow us to more obviously unify the compat header
into the main header.
No change in functionality.
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-6-git-send-email-mingo@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/uapi/asm/sigcontext32.h')
-rw-r--r-- | arch/x86/include/uapi/asm/sigcontext32.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/arch/x86/include/uapi/asm/sigcontext32.h b/arch/x86/include/uapi/asm/sigcontext32.h index 6ff4fbab650e..939a84885673 100644 --- a/arch/x86/include/uapi/asm/sigcontext32.h +++ b/arch/x86/include/uapi/asm/sigcontext32.h @@ -9,15 +9,15 @@ /* 10-byte legacy floating point register: */ struct _fpreg { - unsigned short significand[4]; - unsigned short exponent; + __u16 significand[4]; + __u16 exponent; }; /* 16-byte floating point register: */ struct _fpxreg { - unsigned short significand[4]; - unsigned short exponent; - unsigned short padding[3]; + __u16 significand[4]; + __u16 exponent; + __u16 padding[3]; }; /* 16-byte XMM vector register: */ @@ -38,8 +38,8 @@ struct _fpstate_ia32 { __u32 dataoff; __u32 datasel; struct _fpreg _st[8]; - unsigned short status; - unsigned short magic; /* 0xffff: regular FPU data only */ + __u16 status; + __u16 magic; /* 0xffff: regular FPU data only */ /* 0x0000: FXSR data */ /* Extended FXSR FPU environment: */ @@ -58,28 +58,28 @@ struct _fpstate_ia32 { /* 32-bit compat sigcontext: */ struct sigcontext_ia32 { - unsigned short gs, __gsh; - unsigned short fs, __fsh; - unsigned short es, __esh; - unsigned short ds, __dsh; - unsigned int di; - unsigned int si; - unsigned int bp; - unsigned int sp; - unsigned int bx; - unsigned int dx; - unsigned int cx; - unsigned int ax; - unsigned int trapno; - unsigned int err; - unsigned int ip; - unsigned short cs, __csh; - unsigned int flags; - unsigned int sp_at_signal; - unsigned short ss, __ssh; - unsigned int fpstate; /* Pointer to 'struct _fpstate_ia32' */ - unsigned int oldmask; - unsigned int cr2; + __u16 gs, __gsh; + __u16 fs, __fsh; + __u16 es, __esh; + __u16 ds, __dsh; + __u32 di; + __u32 si; + __u32 bp; + __u32 sp; + __u32 bx; + __u32 dx; + __u32 cx; + __u32 ax; + __u32 trapno; + __u32 err; + __u32 ip; + __u16 cs, __csh; + __u32 flags; + __u32 sp_at_signal; + __u16 ss, __ssh; + __u32 fpstate; /* Pointer to 'struct _fpstate_ia32' */ + __u32 oldmask; + __u32 cr2; }; #endif /* _ASM_X86_SIGCONTEXT32_H */ |