Reputation: 2533
I'm learning linux kernel internals and I understand that the first C function called is start_kernel(). But I think that the system must prepare itself to be able to run c functions, like installing the interupt service rutines.
Well, What are the full steps sequence that linux run? Where can I find it's code? (I'm using ubuntu 12.04 LTS with kernel 3.2.0.37-generic)
Upvotes: 1
Views: 661
Reputation: 610
Before calling the start_kernel()
whole process go through the complete booting process.
Also in book "Essential Linux Device Drivers" go the chapter "A Peek Inside the Kernel". Its author's site.
Also you can go through this link.
Upvotes: 1
Reputation: 51
Before running the start_kernel (init/main.c) , there are some assembly code (for eg. head.S) which runs and prepares the system to run c function.
Interrupt service routines are done later.
Upvotes: 1