Skip to content

Commit

Permalink
Update bootloader-kernel interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
mariapana committed Jul 10, 2024
1 parent 55ab4e2 commit 5bfe96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/blog/2024-07-10-gsoc-multiboot2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ This ensures that GRUB identifies the overall file as an ELF and avoids any pote
### Interaction between Bootloader and Kernel

The bootloader locates the Multiboot2 header within the ELF file.
After verifying the magic number and architecture compatibility, it parses the header and tags to gather essential system information.
It then loads the kernel into memory, sets up the environment, and transfers control to the kernel's entry point.
After verifying the magic number and architecture compatibility, it parses the header and tags.
Next, the information requested by the tags is placed into the kernel memory and the bootloader passes control to the kernel.

The kernel, in turn, accesses the Multiboot2 header using the information provided by the bootloader.
It iterated through the tags to extract the necessary data, such as memory regions, boot command line, and other parameters.
Expand Down

0 comments on commit 5bfe96d

Please sign in to comment.