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

Albert ARIBAUD
2010-11-12T08:04:40Z

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.