
24 Feb
2015
24 Feb
'15
2:55 p.m.
Hello Stefan,
On Tue, 10 Feb 2015 14:36:35 +0100, Stefan Roese sr@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.