[PATCH] ARM: let CPUs not being able to run in ARM mode enter in THUMB mode

Nicolas Pitre nico at fluxnic.net
Sat Jan 12 12:19:54 EST 2013


On Fri, 11 Jan 2013, Uwe Kleine-König wrote:

> Hi Jonny,
> 
> On Fri, Jan 11, 2013 at 03:34:39PM +0000, Jonathan Austin wrote:
> > Hi Uwe,
> > On 11/01/13 11:39, Uwe Kleine-König wrote:
> > >Some ARM cores are not capable to run in ARM mode (e.g. Cortex-M3). So
> > >obviously these cannot enter the kernel in ARM mode. Make an exception
> > >for them and let them enter in THUMB mode.
> > 
> > Clearly something like this is necessary, but it isn't something I'd
> > like for people to start using *unless* they have a THUMB only CPU
> > (for example, to work around dodgy boot-loaders, etc)
> > 
> > Seeing as there are no THUMB-only CPUs with an MMU, I think we could
> > safely constrain this change to:
> > a) depend on !MMU
> > b) only touch head-nommu.S
> > 
> > Does that cause any issue for what you're doing.
> Would be ok for me, too. I don't care much.

Please do so then.  I had the same concern.


Nicolas


More information about the linux-arm-kernel mailing list