]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7180/1: Change kprobes testcase with unpredictable STRD instruction
authorJon Medhurst (Tixy) <tixy@yxit.co.uk>
Tue, 29 Nov 2011 07:14:35 +0000 (08:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 30 Nov 2011 23:54:53 +0000 (23:54 +0000)
commit59731d3b59bb4edc585a48725a0a5ce68898e1d1
treed18981956db104fc75fc4212976e6363a094ecc3
parente9f6009a5dd8ff453b9c7c17efaaef0553d81eb3
ARM: 7180/1: Change kprobes testcase with unpredictable STRD instruction

There is a kprobes testcase for the instruction "strd r2, [r3], r4".
This has unpredictable behaviour as it uses r3 for register writeback
addressing and also stores it to memory.

On a cortex A9, this testcase would fail because the instruction writes
the updated value of r3 to memory, whereas the kprobes emulation code
writes the original value.

Fix this by changing testcase to used r5 instead of r3.

Reported-by: Leif Lindholm <leif.lindholm@arm.com>
Tested-by: Leif Lindholm <leif.lindholm@arm.com>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/kprobes-test-arm.c