paging question

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
User avatar
AlfaOmega08
Member
Member
Posts: 226
Joined: Wed Nov 07, 2007 12:15 pm
Location: Italy

paging question

Post by AlfaOmega08 »

According to the JamesM tutorial, if I

Code: Select all

u32int *ptr = (u32int*)0xA0000000;
with Paging activated, a Page Fault Exception should fire.

And so, how will drivers works?

For example the video driver that points to 0xB8000 shuld generate an Exception, right?

Thanks
User avatar
Wave
Member
Member
Posts: 50
Joined: Sun Jan 20, 2008 5:51 am

Post by Wave »

You need to identity map those parts of memory you want to write to, so that when the driver tries to access 0xB8000 it is allowed to do so.
Conway's Law: If you have four groups working on a compiler, you'll get a 4-pass compiler.
Melvin Conway
Post Reply