Reputation: 507
When I was going through the linux kernel code I found the entry point to kernel as i386_start_kernel() function which is doing all early setup and then start_kernel() is called. Now when I searched for start_kernel() I found it is defined in several .c files as such: Bootp.c, Main.c under /boot and again Main.c under /init.
As per my understanding it should be from Main.c under /init. But still I am not so cleared about it. It would be great if someone can confirm which start_kernel() is called or explain which start_kernel() is for what?
Upvotes: 1
Views: 2939
Reputation: 21817
The start_kernel
from the init/main.c
is a entry point to the generic kernel code. All other start_kernel
functions which you can find in the linux kernel soure code, do architecture-specific job.
Upvotes: 5