summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/disasm.c
diff options
context:
space:
mode:
authorVineet Gupta2013-01-23 12:00:36 +0100
committerVineet Gupta2013-02-15 18:46:06 +0100
commit2e651ea1596b0ee25af4fcdc4cd13cbb33ffc254 (patch)
tree51210f1cd80327a00e2fd4b0d20849b6329925d6 /arch/arc/kernel/disasm.c
parentsysctl: Enable PARISC "unaligned-trap" to be used cross-arch (diff)
downloadkernel-qcow2-linux-2e651ea1596b0ee25af4fcdc4cd13cbb33ffc254.tar.gz
kernel-qcow2-linux-2e651ea1596b0ee25af4fcdc4cd13cbb33ffc254.tar.xz
kernel-qcow2-linux-2e651ea1596b0ee25af4fcdc4cd13cbb33ffc254.zip
ARC: Unaligned access emulation
ARC700 doesn't natively support unaligned access, but can be emulated -Unaligned Access Exception -Disassembly at the Fault address to find the exact insn (long/short) Also per Arnd's comment, we runtime control it using 2 sysctl knobs: * SYSCTL_ARCH_UNALIGN_ALLOW: Runtime enable/disble * SYSCTL_ARCH_UNALIGN_NO_WARN: Warn on each emulation attempt Originally contributed by Tim Yao <tim.yao@amlogic.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Tim Yao <tim.yao@amlogic.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/kernel/disasm.c')
-rw-r--r--arch/arc/kernel/disasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/kernel/disasm.c b/arch/arc/kernel/disasm.c
index 51bad8ff373b..2f390289a792 100644
--- a/arch/arc/kernel/disasm.c
+++ b/arch/arc/kernel/disasm.c
@@ -15,7 +15,7 @@
#include <asm/disasm.h>
#include <asm/uaccess.h>
-#if defined(CONFIG_KGDB) || defined(CONFIG_MISALIGN_ACCESS) || \
+#if defined(CONFIG_KGDB) || defined(CONFIG_ARC_MISALIGN_ACCESS) || \
defined(CONFIG_KPROBES)
/* disasm_instr: Analyses instruction at addr, stores