2 * r6000_fpu.S: Save/restore floating point context for signal handlers.
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (C) 1996 by Ralf Baechle
10 * Multi-arch abstraction and asm macros for easier reading:
11 * Copyright (C) 1996 David S. Miller (davem@davemloft.net)
14 #include <asm/fpregdef.h>
15 #include <asm/mipsregs.h>
16 #include <asm/asm-offsets.h>
17 #include <asm/regdef.h>
25 * _save_fp_context() - save FP context from the FPU
26 * @a0 - pointer to fpregs field of sigcontext
27 * @a1 - pointer to fpc_csr field of sigcontext
29 * Save FP context, including the 32 FP data registers and the FP
30 * control & status register, from the FPU to signal context.
32 LEAF(_save_fp_context)
39 /* Store the 16 double precision registers */
63 * _restore_fp_context() - restore FP context to the FPU
64 * @a0 - pointer to fpregs field of sigcontext
65 * @a1 - pointer to fpc_csr field of sigcontext
67 * Restore FP context, including the 32 FP data registers and the FP
68 * control & status register, from signal context to the FPU.
70 LEAF(_restore_fp_context)
76 /* Restore the 16 double precision registers */
97 END(_restore_fp_context)
99 .set pop /* SET_HARDFLOAT */