2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2004 PathScale, Inc
|
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __REGISTERS_H
|
|
|
|
#define __REGISTERS_H
|
|
|
|
|
|
|
|
#include "sysdep/ptrace.h"
|
2006-09-26 08:33:08 +02:00
|
|
|
#include "sysdep/archsetjmp.h"
|
2005-04-17 00:20:36 +02: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 10:27:15 +02: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 10:26:58 +02: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-17 00:20:36 +02:00
|
|
|
extern void init_registers(int pid);
|
2007-10-16 10:26:47 +02:00
|
|
|
extern void get_safe_registers(unsigned long *regs);
|
2006-09-26 08:33:08 +02:00
|
|
|
extern unsigned long get_thread_reg(int reg, jmp_buf *buf);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#endif
|