Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#6 init/exit list

closed
Erik Mouw
None
5
2001-10-02
2001-09-28
Erik Mouw
No

Init and exit lists would make it easy to add subsystems without having to ugly things like:

#ifdef FOO_SUBSYSTEM
init_foo_subsystem();
#endif

in the blob main() function.

Subsystems should just register their initialisation functions with a simple __init() call (much in the same way as the current __command() call works), and the main() function will call all registered init calls at boot.

Exit functions are almost the same, they turn some features off just before blob boots the kernel (like the i-cache, for example).

Discussion

  • Erik Mouw
    Erik Mouw
    2001-10-02

    Logged In: YES
    user_id=57513

    This feature was just added to the latest blob CVS version. Please cvs update your local blob CVS sandbox.

     
  • Erik Mouw
    Erik Mouw
    2001-10-02

    • status: open --> closed