In this series, we’ll write our own 64-bit x86 operating system kernel from scratch, which will be multiboot2-compliant. In future episodes we might expand out to other architectures and bootloaders.

In this first episode, we write our initial boot code and also include a multiboot2 header so that it can be understood by bootloaders.

This operating system will be primarily written in C, but we’ll need some assembly as well for any of the hardware-specific code.

All the code is available on GitHub:
https://github.com/davidcallanan/yt-os-series/tree/ep1

Thanks to top Patreon supporters Helge Sverre Hessevik Liseth and Kaas at the time of uploading this video!

Consider becoming a Patreon supporter below:
https://patreon.com/CodePulse


Useful resources (in no particular order):

https://wiki.osdev.org/
First edition: https://os.phil-opp.com/first-edition/
Latest edition: https://os.phil-opp.com/
https://en.wikipedia.org/wiki/X86_calling_conventions#System_V_AMD64_ABI
http://www.osdever.net/bkerndev/Docs/creatingmain.htm

And some youtube videos such as:
https://www.youtube.com/watch?v=rr-9w2gITDM
https://www.youtube.com/watch?v=Lke3QOytgcQ&list=PLmlvkUN3-1MNKwINqdCDtTdNDjfBmWcZA
https://www.youtube.com/watch?v=9GDX-IyZ_C8

#boot code #multiboot #operating system kernel

Write Your Own 64-bit Operating System Kernel - Boot code and multiboot header #1
2.05 GEEK