Skip to content

Commit

Permalink
introduce user_fpregs_struct_t on arm and aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
  • Loading branch information
xemul committed Sep 23, 2016
1 parent 6245ad7 commit d0df375
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion criu/arch/aarch64/crtools.c
Expand Up @@ -84,7 +84,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 iovec iov;
struct user_fpsimd_state fpsimd;
user_fpregs_struct_t fpsimd;
int i, ret;

pr_info("Dumping GP/FPU registers for %d\n", pid);
Expand Down
1 change: 1 addition & 0 deletions criu/arch/aarch64/include/asm/types.h
Expand Up @@ -45,6 +45,7 @@ typedef struct {
*/

typedef struct user_pt_regs user_regs_struct_t;
typedef struct user_fpsimd_state user_fpregs_struct_t;


#define REG_RES(r) ((u64)(r).regs[0])
Expand Down
2 changes: 1 addition & 1 deletion criu/arch/arm/crtools.c
Expand Up @@ -85,7 +85,7 @@ int syscall_seized(struct parasite_ctl *ctl, int nr, unsigned long *ret,
#define PTRACE_GETVFPREGS 27
int get_task_regs(pid_t pid, user_regs_struct_t regs, CoreEntry *core)
{
struct user_vfp vfp;
user_fpregs_struct_t vfp;
int ret = -1;

pr_info("Dumping GP/FPU registers for %d\n", pid);
Expand Down
2 changes: 2 additions & 0 deletions criu/arch/arm/include/asm/types.h
Expand Up @@ -49,6 +49,8 @@ typedef struct {
long uregs[18];
} user_regs_struct_t;

typedef struct user_vfp user_fpregs_struct_t;

#define ARM_cpsr uregs[16]
#define ARM_pc uregs[15]
#define ARM_lr uregs[14]
Expand Down

0 comments on commit d0df375

Please sign in to comment.