Enabling paging outside bootloader?
Posted: Fri Aug 19, 2011 7:45 am
I am using Grub instead of my own bootloader, I decided to drop it because it had some bugs on real hardware.
However, in the tutorial paging is enabled from the bootloader, and Grub doesn't enable paging. So my guess is that I have to do that in the loader (the asm code executed just before entering main, which sets up the stack, verifies the bootloader etc). And how can I do the jump to higher space (e.g. 0xC0000000), since the kernel is linked at 0x100000?
If this might help, I'm using Cygwin, I compiled gcc and binutils myself, and output format is i586-elf.
However, in the tutorial paging is enabled from the bootloader, and Grub doesn't enable paging. So my guess is that I have to do that in the loader (the asm code executed just before entering main, which sets up the stack, verifies the bootloader etc). And how can I do the jump to higher space (e.g. 0xC0000000), since the kernel is linked at 0x100000?
If this might help, I'm using Cygwin, I compiled gcc and binutils myself, and output format is i586-elf.