BOOTBOOT: Difference between revisions

m
[unchecked revision][unchecked revision]
mNo edit summary
Line 32:
== Your Kernel ==
 
You can use ELF64 or PE32+ formats for your kernel. You must link it as a [[Higher Half Kernel]], and your entry point should point to [[Long Mode]] code. That's all. Unlike all the other boot loadersprotocols (likee.g. [[Multiboot]] and [[stivale]]), there's absolutely no need for special sections nor for magic structs, unimplementable in some languages. No real mode nor protected mode trampoline code needed either, which simplifies your build environment significantly. Example linker script provided for both x86_64 and AArch64. There are example kernels written in [[C]], [[Pascal]], [[Rust]] and [[Go]].
 
BOOTBOOT passes a configuration to your kernel in a newline separated, zero-terminated UTF-8 string. Each line contains a ''key=value'' pair, where only two keys, "screen" and "kernel" are reserved. You are free to use any other keys that your kernel wishes to use.
Anonymous user