Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'compel/arch/ppc64/src/lib/infect.c')
-rw-r--r--compel/arch/ppc64/src/lib/infect.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/compel/arch/ppc64/src/lib/infect.c b/compel/arch/ppc64/src/lib/infect.c
index b2c725f62..339e01209 100644
--- a/compel/arch/ppc64/src/lib/infect.c
+++ b/compel/arch/ppc64/src/lib/infect.c
@@ -372,17 +372,18 @@ static int __get_task_regs(pid_t pid, user_regs_struct_t *regs,
return 0;
}
-int get_task_regs(pid_t pid, user_regs_struct_t *regs, save_regs_t save,
+int compel_get_task_regs(pid_t pid, user_regs_struct_t *regs,
+ user_fpregs_struct_t *ext_regs, save_regs_t save,
void *arg, __maybe_unused unsigned long flags)
{
- user_fpregs_struct_t fpregs;
+ user_fpregs_struct_t tmp, *fpregs = ext_regs ? ext_regs : &tmp;
int ret;
- ret = __get_task_regs(pid, regs, &fpregs);
+ ret = __get_task_regs(pid, regs, fpregs);
if (ret)
return ret;
- return save(arg, regs, &fpregs);
+ return save(arg, regs, fpregs);
}
int compel_syscall(struct parasite_ctl *ctl, int nr, long *ret,