diff options
Diffstat (limited to 'arch/um/os-Linux/registers.c')
-rw-r--r-- | arch/um/os-Linux/registers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/um/os-Linux/registers.c b/arch/um/os-Linux/registers.c index 9dc3fad9ea29..ce0b791160e6 100644 --- a/arch/um/os-Linux/registers.c +++ b/arch/um/os-Linux/registers.c | |||
@@ -13,26 +13,26 @@ | |||
13 | 13 | ||
14 | static unsigned long exec_regs[MAX_REG_NR]; | 14 | static unsigned long exec_regs[MAX_REG_NR]; |
15 | 15 | ||
16 | void init_thread_registers(union uml_pt_regs *to) | 16 | void init_thread_registers(struct uml_pt_regs *to) |
17 | { | 17 | { |
18 | memcpy(to->skas.regs, exec_regs, sizeof(to->skas.regs)); | 18 | memcpy(to->regs, exec_regs, sizeof(to->regs)); |
19 | } | 19 | } |
20 | 20 | ||
21 | void save_registers(int pid, union uml_pt_regs *regs) | 21 | void save_registers(int pid, struct uml_pt_regs *regs) |
22 | { | 22 | { |
23 | int err; | 23 | int err; |
24 | 24 | ||
25 | err = ptrace(PTRACE_GETREGS, pid, 0, regs->skas.regs); | 25 | err = ptrace(PTRACE_GETREGS, pid, 0, regs->regs); |
26 | if(err < 0) | 26 | if(err < 0) |
27 | panic("save_registers - saving registers failed, errno = %d\n", | 27 | panic("save_registers - saving registers failed, errno = %d\n", |
28 | errno); | 28 | errno); |
29 | } | 29 | } |
30 | 30 | ||
31 | void restore_registers(int pid, union uml_pt_regs *regs) | 31 | void restore_registers(int pid, struct uml_pt_regs *regs) |
32 | { | 32 | { |
33 | int err; | 33 | int err; |
34 | 34 | ||
35 | err = ptrace(PTRACE_SETREGS, pid, 0, regs->skas.regs); | 35 | err = ptrace(PTRACE_SETREGS, pid, 0, regs->regs); |
36 | if(err < 0) | 36 | if(err < 0) |
37 | panic("restore_registers - saving registers failed, " | 37 | panic("restore_registers - saving registers failed, " |
38 | "errno = %d\n", errno); | 38 | "errno = %d\n", errno); |