Re: [PATCH] ARM: NOMMU: Fix exc_ret for stack frame type

From: Vladimir Murzin
Date: Mon Oct 14 2024 - 05:54:11 EST


On 10/13/24 14:25, Jisheng Zhang wrote:
> commit 72cd4064fcca ("ARM: 8830/1: NOMMU: Toggle only bits in
> EXC_RETURN we are really care of") only sets BIT[3] for Thread mode
> and BIT[2] for PSP, it leaves BIT[4] untouched. But there's such a
> case: the pre-linux env makes use of FPU then the BIT[4] in 'lr' is
> cleared, this brings an umatch issue since the NOMMU kernel doesn't

Can pre-linux env disable FPU before passing control to kernel (which
is, as correctly pointed, doesn't know how to use FPU)?

Cheers
Vladimir