[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86d0ohw22q.wl-marc.zyngier@arm.com>
Date: Mon, 28 Jan 2019 09:42:21 +0000
From: Marc Zyngier <marc.zyngier@....com>
To: Julien Thierry <julien.thierry@....com>
Cc: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <daniel.thompson@...aro.org>,
<joel@...lfernandes.org>, <christoffer.dall@....com>,
<james.morse@....com>, <catalin.marinas@....com>,
<will.deacon@....com>, <mark.rutland@....com>,
Oleg Nesterov <oleg@...hat.com>,
Dave Martin <Dave.Martin@....com>
Subject: Re: [PATCH v9 08/26] arm64: Make PMR part of task context
On Mon, 21 Jan 2019 15:33:27 +0000,
Julien Thierry <julien.thierry@....com> 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 <julien.thierry@....com>
> Reviewed-by: Catalin Marinas <catalin.marinas@....com>
> Cc: Catalin Marinas <catalin.marinas@....com>
> Cc: Will Deacon <will.deacon@....com>
> Cc: Oleg Nesterov <oleg@...hat.com>
> Cc: Dave Martin <Dave.Martin@....com>
Reviewed-by: Marc Zyngier <marc.zyngier@....com>
M.
--
Jazz is not dead, it just smell funny.
Powered by blists - more mailing lists