Re: Paging, yes I read the wiki
Posted: Sun Jun 21, 2009 3:52 am
I think the problem lies there. Paging structures are required to be aligned on page boundaries as far as I know (check the Intel manuals to be sure), and the sum of 0xB8000+(80*25*2) is not divisible by 4096. Therefore the address will be off by a page and some reserved bits may be set. Probably this is what makes your emulator refuse the code.brodeur235 wrote:VBox is aborting when I try to actually enable paging by setting cr3 with the address of the page dir and turning on the last bit of cr0. The following asm is in my kernel's main:Code: Select all
;this part works fine mov eax,0x000B8000 add eax,(80*25*2) ;where to begin page directory (right after vid-mem)