[U-Boot] [PATCH] arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD

Albert ARIBAUD albert.u.boot at aribaud.net
Tue Feb 24 14:55:40 CET 2015


Hello Stefan,

On Tue, 10 Feb 2015 14:36:35 +0100, Stefan Roese <sr at denx.de> wrote:
> Hi Albert,
> 
> Another option would be to remove all the irq_off/_on stuff from
> the atomic_foo() and the bitops functions. We are running in a
> single-threaded environment after all in U-Boot. So there should
> be no need for such synch mechanisms. But these files are copied
> from Linux. And I really don't like to make changes to these files.
> 
> And ideas / comments welcome.

I have an idea, only moderately better, embodied in my V2 patch.

Basically, for Thumb-1 builds, I insert an include path which allows me
to "intercept" includes of 'asm/proc-armv/system.h' and provide ad hoc
definitions for local_* definitions.

> Thanks,
> Stefan

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list