kosmas12 / kOS

A test operating system made for fun
GNU General Public License v2.0
0 stars 1 forks source link

Keyboard not working with GRUB boot #1

Open kosmas12 opened 3 years ago

kosmas12 commented 3 years ago

Trying to press any button after booting with GRUB makes the computer reboot, like it crashes in some way. This happens because the GDT that GRUB sets up is incompatible. It works if you can use the kernel with QEMU by using the -kernel parameter, like so:

qemu-system-i386 -kernel path/to/kOS/binary

However, this is only a temporary workaround and not a solution, as QEMU's set-up GDT table just happens to be compatible. Instead, kOS should handle GDT initialization on its own.

kosmas12 commented 3 years ago

This was addressed in commit 0f4bc1b4c4118a08bd403d706e2bfbb4139de673 and has been tested to work on QEMU with both its own bootloader and the kOS-bundled GRUB bootloader. Not closing this issue as I haven't tested this on real hardware yet.