[PATCH 10] IO_MANAGER: early dynamic driver registration
sebastian.huber at embedded-brains.de
Fri Feb 3 13:48:29 UTC 2012
On 02/03/2012 11:39 AM, Daniel Hellstrom wrote:
> 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?
I guess you use the boot_card() function to start your system? At which point
do you registers these BSP specific drivers? Can't you use the
bsp_pretasking_hook() or CONFIGURE_BSP_PREREQUISITE_DRIVERS?
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel