From 4c55adaa6d06e5533aebaceea7640ecf10952231 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 25 Nov 2000 04:49:46 +0000 Subject: Kernel FPU emulator, chain saw edition. --- arch/mips/kernel/r4k_switch.S | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/mips/kernel/r4k_switch.S') diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S index 0ac3c532f..5fc53d678 100644 --- a/arch/mips/kernel/r4k_switch.S +++ b/arch/mips/kernel/r4k_switch.S @@ -94,6 +94,14 @@ LEAF(save_fp) jr ra END(save_fp) +/* + * Restore a thread's fp context. + */ +LEAF(restore_fp) + FPU_RESTORE_DOUBLE(a0, t1) # clobbers t1 + jr ra + END(r4xx0_restore_fp) + /* * Load the FPU with signalling NANS. This bit pattern we're using has * the property that no matter whether considered as single or as double -- cgit v1.2.3