Absurdponcho/PonchoOS

GDT causes QEMU to go in a bootloop

Closed this issue · 1 comments

I was working on my own OS based off this repository and the YouTube series and I got to the point where I had to implement the GDT and IDT, and my code kept causing QEMU to reboot. I rewrote the entire code, copy pasted the code from this repo into mine, the only difference being is that I use C instead of C++. When I got mad, I cloned this repository and changed to the commit containing the GDT code (episode 10), and sure enough, QEMU also kept rebooting. For gods sake I have been stuck for 3 days trying to fix this any help?

I started debugging the code line by line by adding infinite loops, turns out the problem was the Page frame allocator, when I switched the code for that for the latest one (episode 20 ish). The GDT worked.