#15119: Implement multiboot2 bootloader support to haiku_loader
----------------------------------+----------------------------
Reporter: kallisti5 | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/Boot Loader | Version: R1/Development
Resolution: | Keywords: multiboot2
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------
Comment (by kallisti5):
(I started poking at things, but don't need another rabbit hole to
follow.)
Here are some example things:
{{{
src/system/boot/platform/multiboot2/
src/system/boot/platform/multiboot2/arch
src/system/boot/platform/multiboot2/arch/x86
src/system/boot/platform/multiboot2/arch/x86/start.S
src/system/ldscripts/arm/boot_loader_multiboot2.ld
}}}
{{{
$ cat src/system/ldscripts/arm/boot_loader_multiboot2.ld
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(start)
STACK_SIZE = 16384;
SECTIONS {
. = BOOT_LOADER_BASE;
.boot :
{
/* ensure that the multiboot header is at the beginning */
*(.multiboot_header)
}
.text :
{
*(.text)
}
}
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15119#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.