Moving the code related to protected mode and long mode from bootmon to kernel.