Mark Rutland 49f6cba617 arm64: handle sys and undef traps consistently
If an EL0 instruction in the SYS class triggers an exception, do_sysintr
looks for a sys64_hook matching the instruction, and if none is found,
injects a SIGILL. This mirrors what we do for undefined instruction
encodings in do_undefinstr, where we look for an undef_hook matching the
instruction, and if none is found, inject a SIGILL.

Over time, new SYS instruction encodings may be allocated. Prior to
allocation, exceptions resulting from these would be handled by
do_undefinstr, whereas after allocation these may be handled by
do_sysintr.

To ensure that we have consistent behaviour if and when this happens, it
would be beneficial to have do_sysinstr fall back to do_undefinstr.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Suzuki Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2017-01-27 17:13:14 +00:00
..
2012-09-17 13:42:21 +01:00
2016-06-27 16:31:25 +01:00
2016-12-26 13:05:17 -05:00
2017-01-17 17:41:02 +00:00
2016-06-27 16:31:25 +01:00
2016-05-16 17:17:24 -07:00
2016-02-24 14:57:27 +00:00
2016-02-24 14:57:24 +00:00
2016-11-07 18:15:21 +00:00
2016-11-11 18:25:46 +00:00
2016-04-20 12:22:42 +01:00