Bush
Bush

Reputation: 2533

What actions are taken by linux before it successfully call to start_kernel()?

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

Answers (2)

suneet saini
suneet saini

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

srikant-ritolia
srikant-ritolia

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

Related Questions