aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-05-01 20:06:33 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-11 13:48:05 -0700
commit169a6c2f1bb739eb83f4825bbbfe320438913466 (patch)
tree561df37cbe62d52f3db05263233b8b5fc55ee3a8 /fs
parent306110aeadb661286548437f4e0f0e1323711cf0 (diff)
powerpc: Emulate non privileged DSCR read and write
commit 73d2fb758e678c93bc76d40876c2359f0729b0ef upstream. POWER8 allows read and write of the DSCR in userspace. We added kernel emulation so applications could always use the instructions regardless of the CPU type. Unfortunately there are two SPRs for the DSCR and we only added emulation for the privileged one. Add code to match the non privileged one. A simple test was created to verify the fix: http://ozlabs.org/~anton/junkcode/user_dscr_test.c Without the patch we get a SIGILL and it passes with the patch. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions