[CRIU] [PATCH 3/4] arch: Reintroduce user_fpregs_struct_t on x86

Pavel Emelyanov xemul at virtuozzo.com
Mon Sep 26 01:24:59 PDT 2016


Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/arch/x86/crtools.c           | 2 +-
 criu/arch/x86/include/asm/types.h | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/criu/arch/x86/crtools.c b/criu/arch/x86/crtools.c
index f222b55..d74efc3 100644
--- a/criu/arch/x86/crtools.c
+++ b/criu/arch/x86/crtools.c
@@ -195,7 +195,7 @@ int syscall_seized(struct parasite_ctl *ctl, int nr, unsigned long *ret,
 
 int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
 {
-	struct xsave_struct xsave	= {  };
+	user_fpregs_struct_t xsave	= {  };
 	UserX86RegsEntry *gpregs	= core->thread_info->gpregs;
 
 	struct iovec iov;
diff --git a/criu/arch/x86/include/asm/types.h b/criu/arch/x86/include/asm/types.h
index 7b38c50..a52587f 100644
--- a/criu/arch/x86/include/asm/types.h
+++ b/criu/arch/x86/include/asm/types.h
@@ -167,6 +167,7 @@ typedef struct {
 static inline int core_is_compat(CoreEntry *c) { return 0; }
 #endif /* !CONFIG_X86_64 */
 
+#if 0
 typedef struct {
 	unsigned short	cwd;
 	unsigned short	swd;
@@ -181,6 +182,9 @@ typedef struct {
 	u32		xmm_space[64];	/* 16*16 bytes for each XMM-reg = 256 bytes */
 	u32		padding[24];
 } user_fpregs_struct_t;
+#endif
+
+typedef struct xsave_struct user_fpregs_struct_t;
 
 #ifdef CONFIG_X86_64
 # define TASK_SIZE	((1UL << 47) - PAGE_SIZE)
-- 
2.5.0



More information about the CRIU mailing list