Oliver O'Halloran 8f5f525d5b powerpc/64: Fix flush_(d|i)cache_range() called from modules
When the kernel is compiled to use 64bit ABIv2 the _GLOBAL() macro does
not include a global entry point. A function's global entry point is
used when the function is called from a different TOC context and in the
kernel this typically means a call from a module into the vmlinux (or
vice-versa).

There are a few exported asm functions declared with _GLOBAL() and
calling them from a module will likely crash the kernel since any TOC
relative load will yield garbage.

flush_icache_range() and flush_dcache_range() are both exported to
modules, and use the TOC, so must use _GLOBAL_TOC().

Fixes: 721aeaa9fdf3 ("powerpc: Build little endian ppc64 kernel with ABIv2")
Cc: stable@vger.kernel.org # v3.16+
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-04-05 21:40:21 +10:00
..
2017-03-01 10:10:16 -08:00
2016-06-14 13:58:26 +10:00
2016-06-21 15:30:56 +10:00
2014-11-27 09:32:58 +11:00
2017-03-01 10:10:16 -08:00
2017-01-26 17:49:34 -06:00
2017-01-26 17:49:32 -06:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2015-08-06 15:10:20 +10:00
2017-02-22 10:30:38 -08:00
2016-08-07 23:50:09 -04:00
2016-07-15 14:57:47 +10:00
2017-03-01 10:10:16 -08:00
2015-04-07 17:15:13 +10:00