Zig Bare Bones: Difference between revisions

m
fix syntax highlighting error
[unchecked revision][unchecked revision]
m (remove unsupported language)
m (fix syntax highlighting error)
 
(One intermediate revision by the same user not shown)
Line 224:
We also asks the linker to place <code>.multiboot</code> section at first, because the Multiboot specification says that the Multiboot header must be at the first 8KiB of the kernel file.
 
<pre>
<syntaxhighlight>
ENTRY(_start)
Line 251:
}
}
</pre>
</syntaxhighlight>
 
=== src/grub.cfg ===
Line 260:
<code>multiboot</code> asks GRUB to load our kernel from <code>/boot/kernel.elf</code>, and GRUB automatically runs <code>boot</code> after the menu block, which will fire the boot.
 
<syntaxhighlight lang="unixconfig">
menuentry "Zig Bare Bones" {
multiboot /boot/kernel.elf