aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 19:34:48 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-05 19:34:48 -0500
commit2c302e7e41050dbc174d50b58ad42eedf5dbd6fa (patch)
tree922bb84e205ea41f0f6bcae28cc43d9a8668936f /arch/sparc/lib
parent933425fb0010bd02bd459b41e63082756818ffce (diff)
parent52708d690b8be132ba9d294464625dbbdb9fa5df (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc updates from David Miller: "Just a couple of fixes/cleanups: - Correct NUMA latency calculations on sparc64, from Nitin Gupta. - ASI_ST_BLKINIT_MRU_S value was wrong, from Rob Gardner. - Fix non-faulting load handling of non-quad values, also from Rob Gardner. - Cleanup VISsave assembler, from Sam Ravnborg. - Fix iommu-common code so it doesn't emit rediculous warnings on some architectures, particularly ARM" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Fix numa distance values sparc64: Don't restrict fp regs for no-fault loads iommu-common: Fix error code used in iommu_tbl_range_{alloc,free}(). sparc64: use ENTRY/ENDPROC in VISsave sparc64: Fix incorrect ASI_ST_BLKINIT_MRU_S value
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/VISsave.S10
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
26VISenter: 25ENTRY(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
8080: jmpl %g7 + %g0, %g0 7980: jmpl %g7 + %g0, %g0
81 nop 80 nop
81ENDPROC(VISenter)