[PATCH 10] IO_MANAGER: early dynamic driver registration

Daniel Hellstrom daniel at gaisler.com
Fri Feb 3 10:39:18 UTC 2012


On 02/03/2012 08:45 AM, Sebastian Huber wrote:
> On 02/02/2012 03:46 PM, Daniel Hellstrom wrote:
>> Adds the possibility to register drivers before the IO Manager has
>> completed the initialization. Sometimes the BSP may want to register
>> a driver dynamically early in the boot process.
>>
>> Signed-off-by: Daniel Hellstrom<daniel at gaisler.com>
>
> Isn't it possible to use the system state for this?  This would make this additional global variable superfluous.
That would break code that register drivers after the IO_Manager has been initialized and before the system state is updated. That would break my particular use case just because of that. Besizes , 
the IO manager will depend on the system state, but is okay I guess? I can also change from a int to a char to reduce data increase with only one byte?

What do you think?

Daniel



More information about the devel mailing list