virtual memory, next 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
szarek
Posts: 14
Joined: Thu Sep 04, 2014 9:27 am

virtual memory, next question

Post by szarek »

I'm reading http://www.jamesmolloy.co.uk/tutorial_h ... aging.html
And in this tutorial is presented following struct of page directory.
typedef struct page_directory
{
page_table_t *tables[1024];
u32int tablesPhysical[1024];
u32int physicalAddr;
};

Why does it work? Here
Image
is described struct of entry in directory tables. This is different with above.
alexfru
Member
Member
Posts: 1112
Joined: Tue Mar 04, 2014 5:27 am

Re: virtual memory, next question

Post by alexfru »

Don't take type, variable and function names literally. :)
Follow the logic of the code and of what it should be doing (read the CPU manual for that) to set up page translation.
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: virtual memory, next question

Post by Combuster »

And read the comments you conveniently removed.
"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 ]
szarek
Posts: 14
Joined: Thu Sep 04, 2014 9:27 am

Re: virtual memory, next question

Post by szarek »

Follow the logic of the code and of what it should be doing (read the CPU manual for that) to set up page translation.
Could you help me with find manual and suitable part?
Post Reply