General protection fault after reloading CS
Posted: Wed May 25, 2022 2:49 am
I'm following the GDT guide but according to gdb is causing a "General Protection Fault" (0xd), according to the wiki this exception is thrown when a code segment is used improperly but as far as I understand if the GDT is not set segmentation is not enabled. What's going on? I cannot really understand
PS: I'm using GRUB2 as bootloader with Multiboot2 specification and I'm in protected mode
Code: Select all
jmp 0x08:reload_cs
PS: I'm using GRUB2 as bootloader with Multiboot2 specification and I'm in protected mode