[solved] Need help: Hang/crash on boot in Bochs but not Q...
Posted: Tue Aug 21, 2018 1:33 am
I recently came back to my small kernel development project intending to fix a separate issue, only to find out that it won't boot in Bochs, yet works as I thought it would in QEMU.
In order to verify Bochs' result, I tried Virtualbox as well, and got the same result, proving it wasn't an issue with Bochs, and is instead an issue with my code.
I had a similar issue earlier, and my stack creation was at fault, but I've tried all kinds of ways of defining the stack and I still can't get it to work, so I am starting to think that it isn't the stack.
On boot, it prints the intended text, but without the background color that I'd set. It then flickers while doing nothing else.
Looking at Bochs, it continually does:
I've stripped out everything including my IDT code, PIC code, etc, giving a much smaller system with the same problem. I have provided it in tar.xz format here: https://nofile.io/f/defpYtSKwsF/minimal_death.tar.xz
If anyone could help me out, I'd be very pleased, thank you.
In order to verify Bochs' result, I tried Virtualbox as well, and got the same result, proving it wasn't an issue with Bochs, and is instead an issue with my code.
I had a similar issue earlier, and my stack creation was at fault, but I've tried all kinds of ways of defining the stack and I still can't get it to work, so I am starting to think that it isn't the stack.
On boot, it prints the intended text, but without the background color that I'd set. It then flickers while doing nothing else.
Looking at Bochs, it continually does:
Code: Select all
(0) [0x000000100031] 0010:0000000000100031 (unk. ctxt): jmp .-2 (0x00100031) ; ebfe
If anyone could help me out, I'd be very pleased, thank you.