diff options
author | Jon Medhurst <tixy@yxit.co.uk> | 2011-04-08 15:32:56 +0100 |
---|---|---|
committer | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-04-28 23:40:57 -0400 |
commit | 5c6b76fc7d8220e8f00e7a49fb56ca852d7fb661 (patch) | |
tree | 3e43c40877512fde3921351e59c38446ae70e400 /drivers/media/radio/radio-miropcm20.c | |
parent | 54823accfcfc715e9e757a621afb40dabc01d033 (diff) | |
download | kernel_samsung_tuna-5c6b76fc7d8220e8f00e7a49fb56ca852d7fb661.zip kernel_samsung_tuna-5c6b76fc7d8220e8f00e7a49fb56ca852d7fb661.tar.gz kernel_samsung_tuna-5c6b76fc7d8220e8f00e7a49fb56ca852d7fb661.tar.bz2 |
ARM: kprobes: Fix emulation of LDRD and STRD instructions
The decoding of these instructions got the register indexed and
immediate indexed forms the wrong way around, causing incorrect
emulation.
Instructions like "LDRD Rx, [Rx]" were corrupting Rx because the base
register writeback was being performed unconditionally, overwriting the
value just loaded from memory. The fix is to only writeback the base
register when that form of the instruction is used. Note, now that we
reject probing writeback with PC the emulation code doesn't need the
check rn!=15.
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'drivers/media/radio/radio-miropcm20.c')
0 files changed, 0 insertions, 0 deletions