[1/6] compel: arch, x86 -- Make rt_sigcontext_32 members being close to kernel

Submitted by Cyrill Gorcunov on Feb. 13, 2017, 3:03 p.m.

Details

Message ID 1486998203-2834-2-git-send-email-gorcunov@openvz.org
State New
Series "ia32: Add support for FPU c/r in compat environment"
Headers show

Commit Message

Cyrill Gorcunov Feb. 13, 2017, 3:03 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
 compel/arch/x86/src/lib/include/uapi/asm/sigframe.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
index 21cd341c0393..619935b0e1e9 100644
--- a/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
+++ b/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
@@ -41,10 +41,10 @@  struct rt_sigcontext {
 };
 
 struct rt_sigcontext_32 {
-	uint32_t			gs;
-	uint32_t			fs;
-	uint32_t			es;
-	uint32_t			ds;
+	uint16_t			gs, __gsh;
+	uint16_t			fs, __fsh;
+	uint16_t			es, __esh;
+	uint16_t			ds, __dsh;
 	uint32_t			di;
 	uint32_t			si;
 	uint32_t			bp;
@@ -56,11 +56,10 @@  struct rt_sigcontext_32 {
 	uint32_t			trapno;
 	uint32_t			err;
 	uint32_t			ip;
-	uint32_t			cs;
+	uint16_t			cs, __csh;
 	uint32_t			flags;
 	uint32_t			sp_at_signal;
-	uint32_t			ss;
-
+	uint16_t			ss, __ssh;
 	uint32_t			fpstate;
 	uint32_t			oldmask;
 	uint32_t			cr2;