[PATCH] ARM: v7-M: Use ret_to_user_from_irq in PendSV handler

Ezequiel Garcia ezequiel at vanguardiasur.com.ar
Mon Oct 26 06:01:32 PDT 2015


On 26 October 2015 at 04:50, Uwe Kleine-König
<u.kleine-koenig at pengutronix.de> wrote:
> On Sun, Oct 25, 2015 at 09:10:52PM -0300, Ezequiel Garcia wrote:
>> The PendSV handler calls v7m_exception_entry which
>> disables IRQs. Therefore, since IRQs are already disabled,
>> the PendSV handler can return using ret_to_user_from_irq.
>>
>> Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
> Looks right. How did you notice this?
>

Just reading the code.

> Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
>

Thanks, I'll queue this in Russell's patch tracking system.
-- 
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar



More information about the linux-arm-kernel mailing list