registers.h 861 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2004 PathScale, Inc
  3. * Licensed under the GPL
  4. */
  5. #ifndef __REGISTERS_H
  6. #define __REGISTERS_H
  7. #include <sysdep/ptrace.h>
  8. #include <sysdep/archsetjmp.h>
  9. extern int save_fp_registers(int pid, unsigned long *fp_regs);
  10. extern int restore_fp_registers(int pid, unsigned long *fp_regs);
  11. extern int save_fpx_registers(int pid, unsigned long *fp_regs);
  12. extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
  13. extern int save_registers(int pid, struct uml_pt_regs *regs);
  14. extern int restore_registers(int pid, struct uml_pt_regs *regs);
  15. extern int init_registers(int pid);
  16. extern void get_safe_registers(unsigned long *regs, unsigned long *fp_regs);
  17. extern unsigned long get_thread_reg(int reg, jmp_buf *buf);
  18. extern int get_fp_registers(int pid, unsigned long *regs);
  19. extern int put_fp_registers(int pid, unsigned long *regs);
  20. #endif