diff options
Diffstat (limited to 'arch/sparc/lib/VISsave.S')
-rw-r--r-- | arch/sparc/lib/VISsave.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/lib/VISsave.S b/arch/sparc/lib/VISsave.S index a063d84336d6..62c2647bd5ce 100644 --- a/arch/sparc/lib/VISsave.S +++ b/arch/sparc/lib/VISsave.S | |||
@@ -6,24 +6,23 @@ | |||
6 | * Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz) | 6 | * Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz) |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/linkage.h> | ||
10 | |||
9 | #include <asm/asi.h> | 11 | #include <asm/asi.h> |
10 | #include <asm/page.h> | 12 | #include <asm/page.h> |
11 | #include <asm/ptrace.h> | 13 | #include <asm/ptrace.h> |
12 | #include <asm/visasm.h> | 14 | #include <asm/visasm.h> |
13 | #include <asm/thread_info.h> | 15 | #include <asm/thread_info.h> |
14 | 16 | ||
15 | .text | ||
16 | .globl VISenter, VISenterhalf | ||
17 | |||
18 | /* On entry: %o5=current FPRS value, %g7 is callers address */ | 17 | /* On entry: %o5=current FPRS value, %g7 is callers address */ |
19 | /* May clobber %o5, %g1, %g2, %g3, %g7, %icc, %xcc */ | 18 | /* May clobber %o5, %g1, %g2, %g3, %g7, %icc, %xcc */ |
20 | 19 | ||
21 | /* Nothing special need be done here to handle pre-emption, this | 20 | /* Nothing special need be done here to handle pre-emption, this |
22 | * FPU save/restore mechanism is already preemption safe. | 21 | * FPU save/restore mechanism is already preemption safe. |
23 | */ | 22 | */ |
24 | 23 | .text | |
25 | .align 32 | 24 | .align 32 |
26 | VISenter: | 25 | ENTRY(VISenter) |
27 | ldub [%g6 + TI_FPDEPTH], %g1 | 26 | ldub [%g6 + TI_FPDEPTH], %g1 |
28 | brnz,a,pn %g1, 1f | 27 | brnz,a,pn %g1, 1f |
29 | cmp %g1, 1 | 28 | cmp %g1, 1 |
@@ -79,3 +78,4 @@ vis1: ldub [%g6 + TI_FPSAVED], %g3 | |||
79 | .align 32 | 78 | .align 32 |
80 | 80: jmpl %g7 + %g0, %g0 | 79 | 80: jmpl %g7 + %g0, %g0 |
81 | nop | 80 | nop |
81 | ENDPROC(VISenter) | ||