diff options
author | 2013-12-18 09:29:57 +1100 | |
---|---|---|
committer | 2013-12-30 14:02:30 +1100 | |
commit | 20151169f1de4b170368fdb574024027620d0d49 (patch) | |
tree | 4606638e96a390c82d602fd5df00cd193890bf20 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc: Make unaligned accesses endian-safe for powerpc (diff) | |
download | linux-dev-20151169f1de4b170368fdb574024027620d0d49.tar.xz linux-dev-20151169f1de4b170368fdb574024027620d0d49.zip |
powerpc: Make 64-bit non-VMX __copy_tofrom_user bi-endian
The powerpc 64-bit __copy_tofrom_user() function uses shifts to handle
unaligned invocations. However, these shifts were designed for
big-endian systems: On little-endian systems, they must shift in the
opposite direction.
This commit relies on the C preprocessor to insert the correct shifts
into the assembly code.
[ This is a rare but nasty LE issue. Most of the time we use the POWER7
optimised __copy_tofrom_user_power7 loop, but when it hits an exception
we fall back to the base __copy_tofrom_user loop. - Anton ]
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions