On Mon, 21 Jan 2019 15:33:27 +0000,
Julien Thierry <[email protected]> wrote:
> 
> 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 <[email protected]>
> Reviewed-by: Catalin Marinas <[email protected]>
> Cc: Catalin Marinas <[email protected]>
> Cc: Will Deacon <[email protected]>
> Cc: Oleg Nesterov <[email protected]>
> Cc: Dave Martin <[email protected]>

Reviewed-by: Marc Zyngier <[email protected]>

        M.

-- 
Jazz is not dead, it just smell funny.

Reply via email to