Kernel64
yes, this is possible (and allows you to use a common bootloader for both PMode and LMode kernels depending on which is installed, or decided at runtime)
however, keep in mind that when you switch to LMode you will have to change your paging system (or at least dissable then reenable it) and change your TSS (unless you dont have one at all for PMode untill later) and may need to change your GDT (depending on your design)
however, keep in mind that when you switch to LMode you will have to change your paging system (or at least dissable then reenable it) and change your TSS (unless you dont have one at all for PMode untill later) and may need to change your GDT (depending on your design)

