aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/plat-orion/include/plat/addr-map.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-10-09 11:13:26 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-10-09 12:16:46 +0100
commit846a136881b8f73c1f74250bf6acfaa309cab1f2 (patch)
tree56e17539b3b07ef5a17bcccb4174206f07610b0d /arch/arm/plat-orion/include/plat/addr-map.h
parentf5a246eab9a268f51ba8189ea5b098a1bfff200e (diff)
ARM: vfp: fix saving d16-d31 vfp registers on v6+ kernels
Michael Olbrich reported that his test program fails when built with -O2 -mcpu=cortex-a8 -mfpu=neon, and a kernel which supports v6 and v7 CPUs: volatile int x = 2; volatile int64_t y = 2; int main() { volatile int a = 0; volatile int64_t b = 0; while (1) { a = (a + x) % (1 << 30); b = (b + y) % (1 << 30); assert(a == b); } } and two instances are run. When built for just v7 CPUs, this program works fine. It uses the "vadd.i64 d19, d18, d16" VFP instruction. It appears that we do not save the high-16 double VFP registers across context switches when the kernel is built for v6 CPUs. Fix that. Cc: <stable@vger.kernel.org> Tested-By: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-orion/include/plat/addr-map.h')
0 files changed, 0 insertions, 0 deletions