
18 Aug
2011
18 Aug
'11
4:37 p.m.
On Thursday, August 18, 2011 08:34:22 Graeme Russ wrote:
Replace the init_fnc_t *init_sequence[] style init sequence with one based on the Linux __initcall macros.
i like the idea of decentralizing the init sequence out of the arches
Functions are declared as initialisation functions by using the new INIT_FUNC() macro. The three parameters to INIT_FUNC() are:
- Type - f = pre-relocation (flash), r = post-relocation (RAM)
- Sequence - Lower numbers are run first
- Function - The function to call during the init sequence
in this scenario, we'll have to clearly document the #'s and what is expected to run at each so there's no confusion -mike