]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: consolidate signal injection on emulation errors
authorAndre Przywara <andre.przywara@arm.com>
Tue, 28 Jun 2016 17:07:31 +0000 (18:07 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 1 Jul 2016 10:43:30 +0000 (11:43 +0100)
commitc8ca1d1dbee810f5c35b4443d9b9afc5cb8254f3
tree7bbb8ee4425bdec0dbd5563952c68ab6c6e22ee5
parent88d4c974575def5f2649fbbb2764d19c1fe19e32
arm64: consolidate signal injection on emulation errors

The code for injecting a signal into userland if a trapped instruction
fails emulation due to a _userland_ error (like an illegal address)
will be used more often with the next patch.
Factor out the core functionality into a separate function and use
that both for the existing trap handler and for the deprecated
instructions emulation.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[catalin.marinas@arm.com: s/set_segfault/arm64_notify_segfault/]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/traps.h
arch/arm64/kernel/armv8_deprecated.c
arch/arm64/kernel/traps.c