]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Thumb-2: Support Thumb-2 in undefined instruction handler
authorJon Medhurst <tixy@yxit.co.uk>
Sat, 26 Mar 2011 19:19:07 +0000 (19:19 +0000)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:40 +0000 (17:32 +0000)
commit6db676f710432f9c80b6c44d44230aa367e3bef0
treee177ebb35bab0d1bfa2608335b4cd6d51bc3ecfb
parent591afa5a7de1d3ae9670a519b03b0d22e1cb7a12
ARM: Thumb-2: Support Thumb-2 in undefined instruction handler

This patch allows undef_hook's to be specified for 32-bit Thumb
instructions and also to be used for thumb kernel-side code.

32-bit Thumb instructions are specified in the form:
((first_half << 16 ) | second_half)
which matches the layout used by the ARM ARM.

ptrace was handling 32-bit Thumb instructions by hooking the first
halfword and manually checking the second half. This method would be
broken by this patch so it is migrated to make use of the new Thumb-2
support.

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/include/asm/ptrace.h
arch/arm/kernel/ptrace.c
arch/arm/kernel/traps.c