2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2004 PathScale, Inc
|
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __REGISTERS_H
|
|
|
|
#define __REGISTERS_H
|
|
|
|
|
|
|
|
#include "sysdep/ptrace.h"
|
2006-09-26 06:33:08 +00:00
|
|
|
#include "sysdep/archsetjmp.h"
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
extern int save_fp_registers(int pid, unsigned long *fp_regs);
|
|
|
|
extern int restore_fp_registers(int pid, unsigned long *fp_regs);
|
2007-10-16 08:27:15 +00:00
|
|
|
extern int save_fpx_registers(int pid, unsigned long *fp_regs);
|
|
|
|
extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
|
2007-10-16 08:26:58 +00:00
|
|
|
extern void save_registers(int pid, struct uml_pt_regs *regs);
|
|
|
|
extern void restore_registers(int pid, struct uml_pt_regs *regs);
|
2005-04-16 22:20:36 +00:00
|
|
|
extern void init_registers(int pid);
|
2007-10-16 08:26:47 +00:00
|
|
|
extern void get_safe_registers(unsigned long *regs);
|
2006-09-26 06:33:08 +00:00
|
|
|
extern unsigned long get_thread_reg(int reg, jmp_buf *buf);
|
2005-04-16 22:20:36 +00:00
|
|
|
|
|
|
|
#endif
|