[PATCH 3/3] ARM: Allow to compile in thumb-2 mode

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Feb 29 23:40:47 EST 2012


On 20:23 Wed 29 Feb     , Sascha Hauer wrote:
> On Wed, Feb 29, 2012 at 07:21:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 09:56 Tue 28 Feb     , Sascha Hauer wrote:
> > > This shrinks the resulting binary size by ~25%. Exceptions
> > > are still handled in arm mode, so we have to explicitely
> > > put .arm directives into the exception code. Thumb-2 mode
> > > has been tested on i.MX51 Babbage board.
> > > 
> > > +#define STOP	\
> > > +	"1: bne 1b\n" \
> > > +	"nop\n"
> > > +#else
> > > +#define STOP	\
> > > +	"1: bne 1b\n"
> > > +#endif
> > here is my issue can not use bne
> > can only use ldr or b
> 
> Missed this one. bne is wrong anyway, so replaced with '1: b 1b'
> Also, removed the Thumb2 special handling here since the exception
> vectors are explicitely compiled in Arm mode.
> 
do you have push this somewhere

I need to test it


Best Regards,
J.



More information about the barebox mailing list