Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2004 PathScale, Inc |
| 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #ifndef __REGISTERS_H |
| 7 | #define __REGISTERS_H |
| 8 | |
| 9 | #include "sysdep/ptrace.h" |
Jeff Dike | 75e29b1 | 2006-09-25 23:33:08 -0700 | [diff] [blame] | 10 | #include "sysdep/archsetjmp.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Jeff Dike | 77bf440 | 2007-10-16 01:26:58 -0700 | [diff] [blame] | 12 | extern void init_thread_registers(struct uml_pt_regs *to); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | extern int save_fp_registers(int pid, unsigned long *fp_regs); |
| 14 | extern int restore_fp_registers(int pid, unsigned long *fp_regs); |
Jeff Dike | a5f6096 | 2007-10-16 01:27:15 -0700 | [diff] [blame] | 15 | extern int save_fpx_registers(int pid, unsigned long *fp_regs); |
| 16 | extern int restore_fpx_registers(int pid, unsigned long *fp_regs); |
Jeff Dike | 77bf440 | 2007-10-16 01:26:58 -0700 | [diff] [blame] | 17 | extern void save_registers(int pid, struct uml_pt_regs *regs); |
| 18 | extern void restore_registers(int pid, struct uml_pt_regs *regs); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | extern void init_registers(int pid); |
Jeff Dike | 42daba3 | 2007-10-16 01:26:47 -0700 | [diff] [blame] | 20 | extern void get_safe_registers(unsigned long *regs); |
Jeff Dike | 75e29b1 | 2006-09-25 23:33:08 -0700 | [diff] [blame] | 21 | extern unsigned long get_thread_reg(int reg, jmp_buf *buf); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
| 23 | #endif |