Setting Up Paging: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
m Pointer arithmetic wrong for first_page_table. It is 1024 ENTRIES after page_directory, not 0x1000.
Line 58: Line 58:
<source lang="c">
<source lang="c">
//our first page table comes right after the page directory
//our first page table comes right after the page directory
unsigned int *first_page_table = page_directory + 0x1000;
unsigned int *first_page_table = page_directory + 1024;
</source>
</source>