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 void init_thread_registers(union uml_pt_regs *to);
|
|
|
|
extern int save_fp_registers(int pid, unsigned long *fp_regs);
|
|
|
|
extern int restore_fp_registers(int pid, unsigned long *fp_regs);
|
|
|
|
extern void save_registers(int pid, union uml_pt_regs *regs);
|
|
|
|
extern void restore_registers(int pid, union uml_pt_regs *regs);
|
|
|
|
extern void init_registers(int pid);
|
2006-02-07 21:58:43 +01:00
|
|
|
extern void get_safe_registers(unsigned long * regs, unsigned long * fp_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
|