
Dear Jean-Christophe PLAGNIOL-VILLARD,
In message 20090524120041.GG26561@game.jcrosoft.org you wrote:
What sort of benefit do you expect?
simplify the code, reduce the number of ifdef reduce the size of U-Boot etc...
How would that reduce the size of the code?
I do have some test and I've gain between 2KiB and more than 10KiB by using this
And, does it still work on all boards?
so yes I think it's great winn
I think you don't understand the complexity yet. One problem we have to solve is to make sure we have a very specific sequence in which the init routines are run. The original idea of the code was that you can #define the init_sequence[] table in an architecture and/or board config file; it's just that nobody implemented that yet.
If you changed the code in this direction, then this might actually make sense.
The Linux way of doing initcalls is useless for U-Boot, as it addres- ses a completely different problem and is based on a completely different memory management model.
Best regards,
Wolfgang Denk