Page 1 of 1

Minimal Code to Jump from Bootloader to Kernel in C++

Posted: Sat Jul 20, 2024 2:53 am
by Geron
Hi, I want to write a kernel in C++, but the tutorials I followed to jump from the bootloader to the kernel were either too complex, adding other elements that complicated the code, or they didn't work at all. Could someone provide me with the most minimalist working code possible to understand how it works and apply it?
(i386 Compiler)(x86)

Re: Minimal Code to Jump from Bootloader to Kernel in C++

Posted: Sun Jul 21, 2024 9:38 am
by nullplan
My suggestion would be to not rely on tutorials, but rather read documentation until you understand it. Find out what it is your bootloader has, and your kernel needs, and find the code that connects the two. So basically the same old three questions: Where are you, where do you want to be, and how do you get from here to there?