diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-28 16:34:01 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 09:12:37 -0400 |
commit | e0cc3a42eb50593a50e2b99d9dc92b4279f2efda (patch) | |
tree | 7676dd1588614c9b8b5e250eecfc89b57cf8464d /arch/mips/math-emu/kernel_linkage.c | |
parent | 3f7cac416b5e62d37aa693538729c6c23e9b938b (diff) |
MIPS: math-emu: Inline fpu_emulator_init_fpu()
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/kernel_linkage.c')
-rw-r--r-- | arch/mips/math-emu/kernel_linkage.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/arch/mips/math-emu/kernel_linkage.c b/arch/mips/math-emu/kernel_linkage.c deleted file mode 100644 index bee94196a569..000000000000 --- a/arch/mips/math-emu/kernel_linkage.c +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /* | ||
2 | * Kevin D. Kissell, kevink@mips and Carsten Langgaard, carstenl@mips.com | ||
3 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. | ||
4 | * | ||
5 | * This program is free software; you can distribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License (Version 2) as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
12 | * for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along | ||
15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
17 | * | ||
18 | * Routines corresponding to Linux kernel FP context | ||
19 | * manipulation primitives for the Algorithmics MIPS | ||
20 | * FPU Emulator | ||
21 | */ | ||
22 | #include <linux/printk.h> | ||
23 | #include <asm/current.h> | ||
24 | #include <asm/fpu.h> | ||
25 | #include <asm/fpu_emulator.h> | ||
26 | |||
27 | #define SIGNALLING_NAN 0x7ff800007ff80000LL | ||
28 | |||
29 | void fpu_emulator_init_fpu(void) | ||
30 | { | ||
31 | static int first = 1; | ||
32 | int i; | ||
33 | |||
34 | if (first) { | ||
35 | first = 0; | ||
36 | printk("Algorithmics/MIPS FPU Emulator v1.5\n"); | ||
37 | } | ||
38 | |||
39 | current->thread.fpu.fcr31 = 0; | ||
40 | for (i = 0; i < 32; i++) | ||
41 | set_fpr64(¤t->thread.fpu.fpr[i], 0, SIGNALLING_NAN); | ||
42 | } | ||