Stripping PPC kernel initialization from platform depended code
"Christian, Martin, OPEE45" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Hello and thanks to Jan for his CML2 intro. My "make menuconfig" looks nice now with my platform! :-) I just don't know yet, if it works... :-/ I was going through the initalization procedure for the PowerPC and found a problem in "kernel/src/glue/v4-powerpc/init.cc": There is a lot of platform depended code in it, which I think, shouldn't be there. I'm trying to make it platform clean now, to make it simpler adding new platforms. But now I'm running into a problem with the kdb consoles, because they are initialized in different places: (1) init_of1275_console(r5) is called right in the beginning of l4_powerpc_init(...) (2) the generic kdebug_init() is called later in l4_powerpc_init(...) (3) of1275_init() and init_psim_com_console() are called within finish_api_init() as thread I didn't want to follow it all way through, so I hope someone might be able to tell me how these parts are related to each other? Why is the one called in the beginning and the other later? How are the dependencies? Could I just move (1) and (3) into a "init_platform()" function, which is called in the beginning of "l4_powerpc_init"? Regards, Martin.