Re: [android-kernel] Why use "call_constructors()" during initialization of the LK? (little kernel)

2011-09-27 Thread William W.-Y. Liang
Hi, Ivan, __ctor_list and __ctor_end are defined by the linker script, for a special section for 'constructors' defined in the kernel. William Liang http://www.ntut.edu.tw/~wyliang 2011/9/27 ivan > Hi, guys > > When I read the code of lk/kernel/main.c, I feel confused about using > "call_const

[android-kernel] Why use "call_constructors()" during initialization of the LK? (little kernel)

2011-09-27 Thread ivan
Hi, guys When I read the code of lk/kernel/main.c, I feel confused about using "call_constructors()" during the initialization, as below. Could anyone interpret it to me? Your kind help will be appreciated very much. ** void kmain(void) { // get us into some s