A question about paging

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.
Locked
sevobal
Member
Member
Posts: 63
Joined: Sun Oct 22, 2006 7:11 am

A question about paging

Post by sevobal »

Hey everyone,
I've a little question about Paging. After booting my kernel the physical adresses 0-10 MB are direct mapped to the virtual adresses 0-10 MB. So far there is no problem. If a program now tries to access an address above the 10 MB limit the CPU fires up a page fault exception and my kernel has to handle it. Now I should map the required address for the program, but how can I dected which address was requested by the program. I could guess the CPU is telling me the address when the exception fires up, but where?
I hope you can help me a little.

Greetings
SeVo
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: A question about paging

Post by Combuster »

Intel 3A.5 chapter 12 verse 14

Just RTFM
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Locked