Files
linux/arch/arm64/kernel
Julien Thierry 133d051863 arm64: Make PMR part of task context
In order to replace PSR.I interrupt disabling/enabling with ICC_PMR_EL1
interrupt masking, ICC_PMR_EL1 needs to be saved/restored when
taking/returning from an exception. This mimics the way hardware saves
and restores PSR.I bit in spsr_el1 for exceptions and ERET.

Add PMR to the registers to save in the pt_regs struct upon kernel entry,
and restore it before ERET. Also, initialize it to a sane value when
creating new tasks.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2019-02-06 10:05:18 +00:00
..
2018-07-18 01:18:05 +09:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-11-02 17:24:17 +00:00
2019-02-06 10:05:18 +00:00
2019-02-06 10:05:18 +00:00
2019-01-21 17:31:15 +00:00
2018-07-12 14:49:48 +01:00
2018-07-12 14:49:48 +01:00
2017-08-09 12:16:28 +01:00