Larry Bassel 6c81fe7925 arm64: enable context tracking
Make calls to ct_user_enter when the kernel is exited
and ct_user_exit when the kernel is entered (in el0_da,
el0_ia, el0_svc, el0_irq and all of the "error" paths).

These macros expand to function calls which will only work
properly if el0_sync and related code has been rearranged
(in a previous patch of this series).

The calls to ct_user_exit are made after hw debugging has been
enabled (enable_dbg_and_irq).

The call to ct_user_enter is made at the beginning of the
kernel_exit macro.

This patch is based on earlier work by Kevin Hilman.
Save/restore optimizations were also done by Kevin.

Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Larry Bassel <larry.bassel@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2014-07-10 10:10:21 +01:00
..
2012-09-17 13:42:21 +01:00
2014-05-29 09:08:08 +01:00
2014-04-30 19:57:04 +01:00
2014-07-10 10:10:21 +01:00
2014-07-04 16:16:52 +01:00
2012-12-05 11:26:49 +00:00
2012-09-17 13:42:04 +01:00
2014-02-26 11:16:25 +00:00
2014-07-09 12:23:48 +01:00
2014-05-15 10:16:30 -04:00
2014-05-16 10:05:11 +01:00
2014-05-16 10:05:11 +01:00
2013-02-14 09:17:29 -05:00