[Prev][Next][Index][Thread]

Re: Where is the bootstrap Code



> Date: Fri, 17 Nov 2000 21:44:28 +0200
> From: Akram Hussein <mt@ritsec3.com.eg>
> To: OSKIT <oskit-users@fast.cs.utah.edu>
> Subject: Where is the bootstrap Code
> 
> Hi all,
>     I found that the boot strap code is in some object file multiboot.o
> can anyone please tell me where can i find the source code for boot
> strapping and the code responsible for setting up the GDT, IDT and
> hardware devices.
> 

The base_* functions in the kern/x86 and kern/x86/pc directories contain
most of the low-level bootstrap code.

multiboot.o comes from crt/x86/multiboot.S, which is where execution begins.
That calls multiboot_main which comes from the x86/pc directory.  That
routines calls most of the CPU, etc. setup.