Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
3Activity
P. 1
linux kernel commentry

linux kernel commentry

Ratings: (0)|Views: 54|Likes:
Published by sashankdvk

More info:

Categories:Types, Research
Published by: sashankdvk on Nov 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/06/2012

pdf

text

original

 
The Linux Kernel 0.01 Commentary
Pramode C.E
Mobiuz Technologies
Gopakumar C.E
Cisco Systems
 
The Linux Kernel 0.01 Commentary
by Pramode C.E and Gopakumar C.EThis document describes the structure of a prehistoric Linux kernel as understood by the authors.Operating system newbies, hardware hackers or people with too much time in their hands thanthey would care to admit can use this document to learn more about 80386 architecture and thesimple skeleton from which a great Operating Sytem (and a greater movement) was built.The authors are NOT kernel hackers, and as such, the document is not guaranteed to be technicallyperfect. Reports of errors will be gratefully received and, time permitting, corrections would beincorporated in later versions. Flames will be redirected to /dev/null.Happy Hacking!
 
Table of Contents
1. Getting Started...................................................................................................................1
1.1. Introduction...............................................................................................................11.1.1. Copyright and License...................................................................................11.1.2. Feedback and Corrections..............................................................................11.1.3. Acknowledgements........................................................................................11.1.4. Reading 0.01 source.......................................................................................11.1.5. Things you must know...................................................................................11.1.6. How to read this document............................................................................2
2. Building Kernel 0.01..........................................................................................................5
2.1. Getting 0.01 Up And Running..................................................................................5
3. Processor Architecture......................................................................................................9
3.1. The 386 Architecture................................................................................................93.1.1. Segmentation in 386......................................................................................93.1.2. Paging in 386...............................................................................................133.1.3. Interrupts and Exceptions............................................................................173.1.4. Tasks in 386.................................................................................................203.1.5. Privilege Levels And The Stack...................................................................22
4. The Big Picture.................................................................................................................25
4.1. Step Wise Re
nement Of The 0.01 Kernel - Step 1...............................................254.1.1. The Source Tree...........................................................................................254.1.2. The Make
les...............................................................................................254.1.3. The Big Picture............................................................................................25
5. Flow of control through the Kernel................................................................................33
5.1. Step Wise Re
nement Of The 0.01 Kernel - Step 2...............................................335.1.1. Normal Activities In a Running OS.............................................................335.1.2. linux/boot Directory.....................................................................................335.1.3. linux/init Directory.......................................................................................345.1.4. linux/kernel Directory..................................................................................345.1.5. linux/mm Directory......................................................................................365.1.6. linux/fs Directory.........................................................................................365.1.7. linux/lib Directory........................................................................................385.1.8. linux/include Directory................................................................................385.1.9. linux/tools Directory....................................................................................38
6. Journey to the Center of the Code..................................................................................39
6.1. Step Wise Re
nement Of The 0.01 Kernel - Step 3...............................................396.1.1. linux/boot.....................................................................................................396.1.2. linux/kernel..................................................................................................546.1.3. linux/mm......................................................................................................826.1.4. linux/fs.........................................................................................................916.2. The End.................................................................................................................1036.2.1. Do try and get 0.01 up and kicking............................................................103
iii

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->