Tutorial Not Working!!!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
PlayOS

Tutorial Not Working!!!

Post by PlayOS »

Hi,

Has anyone got the tutorial about paging to work. http://osdev.neopages.net/tutorials/paging.php I dont think that it does work, I have tried it many times but without luck, does anyone know where there is some decent and working code.

Thanks
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Tutorial Not Working!!!

Post by Pype.Clicker »

i have pg setup that works at
http://cvs.sourceforge.net/cgi-bin/view ... cvs-markup , http://cvs.sourceforge.net/cgi-bin/view ... cvs-markup ,
http://cvs.sourceforge.net/cgi-bin/view ... cvs-markup

but i'm not sure this is simple enough to be considered as a tutorial ... According to me the tutorial *should* work.
os_dev

Re:Tutorial Not Working!!!

Post by os_dev »

I have tried this tutorial and was unable to get it working, even though it appears to work like the code that playos posted. :)
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Tutorial Not Working!!!

Post by Pype.Clicker »

hmm, just in case:
- do you have A20 line enabled ?
- do you have a page fault handler (just in case) and a correct IDT ?
- do you have a hamster (err .. no, this don't qualify ;p )
- do you have 0-aligned DS (otherwise, address translations are required) ?
PlayOS

Re:Tutorial Not Working!!!

Post by PlayOS »

What is meant by 0-aligned?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Tutorial Not Working!!!

Post by Pype.Clicker »

PlayOS wrote: What is meant by 0-aligned?
i mean the base of your segment is 0 (and thus logical addresses - as NASM assemble them - are identical to absolute addresses - as the CPU need them for some special registers like GDTR, IDTR, CR3, etc.)
PlayOS

Re:Tutorial Not Working!!!

Post by PlayOS »

In that case my DS is 0 aligned, however when nasm assembles the file I have [ORG 0x20000] because my second stage loader is put at 2000:0000, does this cause a problem?
pskyboy

Re:Tutorial Not Working!!!

Post by pskyboy »

Yeah i too tried it and couldn't get it working
K.J.

Re:Tutorial Not Working!!!

Post by K.J. »

Hey, if you can't get it working email me. My email is all over the site([email protected]). I will mess with the code ASAP and try to figure out what the problem is with it.

K.J.
Post Reply