blob: f845b3629a6d021b9a0b5f1b9a2ff80f5a80b8d2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Dike75e29b12006-09-25 23:33:08 -070010#include "sysdep/archsetjmp.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12extern void init_thread_registers(union uml_pt_regs *to);
13extern int save_fp_registers(int pid, unsigned long *fp_regs);
14extern int restore_fp_registers(int pid, unsigned long *fp_regs);
15extern void save_registers(int pid, union uml_pt_regs *regs);
16extern void restore_registers(int pid, union uml_pt_regs *regs);
17extern void init_registers(int pid);
Jeff Dikee2216fe2006-02-07 12:58:43 -080018extern void get_safe_registers(unsigned long * regs, unsigned long * fp_regs);
Jeff Dike75e29b12006-09-25 23:33:08 -070019extern unsigned long get_thread_reg(int reg, jmp_buf *buf);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21#endif