Page 1 of 1

Paging issues again.

Posted: Tue Sep 19, 2006 12:39 pm
by elderK
Hey people.

Ive... somewhat implemented paging in Assembly.
Before the Kernel EVER executes.

So, im doing testing.

Just, to double check me
3GiB is the 768th Page directory entry on the Page Directory, right?

See, I have a string loaded at 1MiB.

I map in 0-4MiB (PDE 0, fully identity mapped).

Then I map 3GiB to 3Gib+4MiB to 0MiB-4MiB.
I try to display a letter from the string at 1MiB by getting the character from 3GiB, and writing it to B8000.

The Letter should be T, instead im getting S.

I use Bochs debugger to show 3GiB, and its just Fs.

So,
a) Is there a way Bochs ... can show me what 3GiB Virtual is actually looking at, so I can debug easier?

b) Any ideas what could do that? I may post Assembly later.

~Zeii.

Re:Paging issues again.

Posted: Tue Sep 19, 2006 12:41 pm
by elderK
Found the Examining command in Bochs Debugger,

x
;) Linear!

:D Duh *Smacks head*

Hehe.

~Z

Re:Paging issues again.

Posted: Tue Sep 19, 2006 1:25 pm
by elderK
HAhaah, awesome.

My bad guys, I mapped 3GiB to 0 :P
once I actually mapped 3GiB to 1MiB, all worked fine.

AWESOME :D
Now I have the Kernel linked to 3GiB and executing at 3GiB Virtual :D

Im really starting to enjoy working in Assembly :D

Woooohooooo! :D

~Z