Page 1 of 1

Tutorial Not Working!!!

Posted: Wed Sep 11, 2002 9:16 am
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

Re:Tutorial Not Working!!!

Posted: Wed Sep 11, 2002 9:40 am
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.

Re:Tutorial Not Working!!!

Posted: Wed Sep 11, 2002 9:46 am
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. :)

Re:Tutorial Not Working!!!

Posted: Wed Sep 11, 2002 10:03 am
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) ?

Re:Tutorial Not Working!!!

Posted: Fri Sep 13, 2002 3:00 am
by PlayOS
What is meant by 0-aligned?

Re:Tutorial Not Working!!!

Posted: Fri Sep 13, 2002 3:51 am
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.)

Re:Tutorial Not Working!!!

Posted: Fri Sep 13, 2002 3:57 am
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?

Re:Tutorial Not Working!!!

Posted: Fri Sep 13, 2002 4:56 am
by pskyboy
Yeah i too tried it and couldn't get it working

Re:Tutorial Not Working!!!

Posted: Fri Sep 13, 2002 11:08 pm
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.