[U-Boot] [PATCH] arm: add 8-byte alignment for ABI compliance before board_init_f

Albert ARIBAUD albert.aribaud at free.fr
Fri Nov 12 09:04:40 CET 2010


Le 12/11/2010 08:19, Heiko Schocher a écrit :

>> One further thought, why not init the reserved register in assembly and
>> remove the gd relevant code in C? But that bears some risk if the register
>> is changed and the assembly is forgotten to adapt..
>
> No, I think this is to risky ...

It is absolutely not risky.

It is simply infeasible. :)

Different ARM toolchains use registers in different ways. Go from one 
toolchain to another, or from one *version* of a toolchain to another, 
and your "reserved" register is not any more.

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list