• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

bootloader question

rookie1010

Senior member
Hello

does the bootloader also loads the kernel, or in case of XIP it just jumps to the location, is that correct?
 
A stage 1 bootloader is a very small and simple thing which just tells the machine where to load the next stage. Some older OSs got away with just loading the kernel from stage 1, but these days it loads a second stage (NTLDR, GRUB stage 2, etc) which is larger, and does other things like give you a menu from which to choose the kernel you want to load.

 
thanks for the reply

does a stage2 also just load the kernel but it gives you a few more options as to where to load the kernel form ?
 
Pretty much.

I'm sure a modern stage 2 loader could do other things like checksum on the kernel to prevent errors, but I don't know if they do of not, I've never had to write one or anything.

 
Originally posted by: rookie1010
Hello

does the bootloader also loads the kernel, or in case of XIP it just jumps to the location, is that correct?

bios runs, loads the MBR, checks partition table for active partition, goes there, loads boot sector, (NT) boot sector loads ntldr, ntldr reads boot.ini, locates ntoskrnl.exe, ntoskrnl loads start 0 services, subsystems, smss, winlogon, winlogon loads userinit, loads explorer, tada desktop.

I'm getting rusty, I think I missed one or two in the later kernel phase.
 
Back
Top