summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/NG4copy_to_user.S
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-12-25 13:15:23 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-12-25 13:15:23 -0800
commit682cb0cd82d526b5d1e8ceaccda4d9b7795db553 (patch)
tree494d563751266cd771a85aa2469f114d6cb4c7f4 /arch/sparc/lib/NG4copy_to_user.S
parenta88164345b81292b55a8d4829fdd35c8d611cd7d (diff)
parent079317a65d05ce52b69b7d47fe1fb419d40a4395 (diff)
downloadlwn-682cb0cd82d526b5d1e8ceaccda4d9b7795db553.tar.gz
lwn-682cb0cd82d526b5d1e8ceaccda4d9b7795db553.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc fixes from David Miller: 1) Finally make perf stack backtraces stable on sparc, several problems (mostly due to the context in which the user copies from the stack are done) contributed to this. From Rob Gardner. 2) Export ADI capability if the cpu supports it. 3) Hook up userfaultfd system call. 4) When faults happen during user copies we really have to clean up and restore the FPU state fully. Also from Rob Gardner * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: tty/serial: Skip 'NULL' char after console break when sysrq enabled sparc64: fix FP corruption in user copy functions sparc64: Perf should save/restore fault info sparc64: Ensure perf can access user stacks sparc64: Don't set %pil in rtrap_nmi too early sparc64: Add ADI capability to cpu capabilities tty: serial: constify sunhv_ops structs sparc: Hook up userfaultfd system call
Diffstat (limited to 'arch/sparc/lib/NG4copy_to_user.S')
-rw-r--r--arch/sparc/lib/NG4copy_to_user.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc/lib/NG4copy_to_user.S b/arch/sparc/lib/NG4copy_to_user.S
index 9744c4540a8d..be0bf4590df8 100644
--- a/arch/sparc/lib/NG4copy_to_user.S
+++ b/arch/sparc/lib/NG4copy_to_user.S
@@ -11,6 +11,14 @@
.text; \
.align 4;
+#define EX_ST_FP(x) \
+98: x; \
+ .section __ex_table,"a";\
+ .align 4; \
+ .word 98b, __retl_one_asi_fp;\
+ .text; \
+ .align 4;
+
#ifndef ASI_AIUS
#define ASI_AIUS 0x11
#endif