xref: /linux/arch/um/include/shared/registers.h (revision 06d07429858317ded2db7986113a9e0129cd599b)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2004 PathScale, Inc
4  */
5 
6 #ifndef __REGISTERS_H
7 #define __REGISTERS_H
8 
9 #include <sysdep/ptrace.h>
10 
11 extern int save_i387_registers(int pid, unsigned long *fp_regs);
12 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
13 extern int save_fp_registers(int pid, unsigned long *fp_regs);
14 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
15 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
16 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int init_pid_registers(int pid);
18 extern void get_safe_registers(unsigned long *regs, unsigned long *fp_regs);
19 extern int get_fp_registers(int pid, unsigned long *regs);
20 extern int put_fp_registers(int pid, unsigned long *regs);
21 
22 #endif
23