summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>2014-09-19 16:56:23 +0400
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>2014-09-19 16:56:23 +0400
commitc86a139dcaf04c242b5022e3ae6fbee9f32ff842 (patch)
treefde294dfd9c30e2f7a585c97f3b3274892263254
parentc59399ef27a3e432c6f791eb5b271d1b7d96b90e (diff)
downloadswap-modules-c86a139dcaf04c242b5022e3ae6fbee9f32ff842.tar.gz
swap-modules-c86a139dcaf04c242b5022e3ae6fbee9f32ff842.tar.bz2
swap-modules-c86a139dcaf04c242b5022e3ae6fbee9f32ff842.zip
[FIX] ARM func: write_u32()
Change-Id: Ia7e7a902ec3b096a68feb692f281a4c345aa07b5 Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
-rw-r--r--kprobe/arch/asm-arm/swap_kprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kprobe/arch/asm-arm/swap_kprobes.c b/kprobe/arch/asm-arm/swap_kprobes.c
index 9b223735..396bd146 100644
--- a/kprobe/arch/asm-arm/swap_kprobes.c
+++ b/kprobe/arch/asm-arm/swap_kprobes.c
@@ -539,7 +539,7 @@ static void write_u32(unsigned long addr, unsigned long val)
#else /* CONFIG_STRICT_MEMORY_RWX */
static void write_u32(unsigned long addr, unsigned long val)
{
- *(long *)addr = BREAKPOINT_INSTRUCTION;
+ *(long *)addr = val;
flush_icache_range(addr, addr + sizeof(long));
}
#endif /* CONFIG_STRICT_MEMORY_RWX */