diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-18 14:47:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-18 17:31:13 +0200 |
commit | 7e94b090fed491f3ca9c0957e7ed2af8ed2e8468 (patch) | |
tree | 1ca195269e74ef7fa879229db362a47290d67eba /Meta/grub-ebr.cfg | |
parent | 357ddd393ebd38321f8bc02274942fcad29a1ac9 (diff) | |
download | serenity-7e94b090fed491f3ca9c0957e7ed2af8ed2e8468.zip |
Kernel: Introduce basic pre-kernel environment
This implements a simple bootloader that is capable of loading ELF64
kernel images. It does this by using QEMU/GRUB to load the kernel image
from disk and pass it to our bootloader as a Multiboot module.
The bootloader then parses the ELF image and sets it up appropriately.
The kernel's entry point is a C++ function with architecture-native
code.
Co-authored-by: Liav A <liavalb@gmail.com>
Diffstat (limited to 'Meta/grub-ebr.cfg')
-rw-r--r-- | Meta/grub-ebr.cfg | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Meta/grub-ebr.cfg b/Meta/grub-ebr.cfg index 4c1a49174f..d0b555ad0b 100644 --- a/Meta/grub-ebr.cfg +++ b/Meta/grub-ebr.cfg @@ -2,21 +2,25 @@ timeout=1 menuentry 'SerenityOS (normal)' { root=hd0,5 - multiboot /boot/Kernel root=/dev/hda4 + multiboot /boot/Bootloader root=/dev/hda4 + module /boot/Kernel } menuentry 'SerenityOS (text mode)' { root=hd0,5 - multiboot /boot/Kernel boot_mode=no-fbdev root=/dev/hda4 + multiboot /boot/Bootloader boot_mode=no-fbdev root=/dev/hda4 + module /boot/Kernel } menuentry 'SerenityOS (No ACPI)' { root=hd0,5 - multiboot /boot/Kernel root=/dev/hda4 acpi=off + multiboot /boot/Bootloader root=/dev/hda4 acpi=off + module /boot/Kernel } menuentry 'SerenityOS (with serial debug)' { - root=hd0,5 - multiboot /boot/Kernel serial_debug root=/dev/hda4 + root=hd0,5 + multiboot /boot/Bootloader serial_debug root=/dev/hda4 + module /boot/Kernel } |