Page 1 of 1

virtual memory, next question

Posted: Thu Sep 11, 2014 8:08 am
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.

Re: virtual memory, next question

Posted: Thu Sep 11, 2014 10:11 am
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.

Re: virtual memory, next question

Posted: Thu Sep 11, 2014 10:18 am
by Combuster
And read the comments you conveniently removed.

Re: virtual memory, next question

Posted: Thu Sep 11, 2014 3:46 pm
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?