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.
I have this setup for paging, from the tutorial on osdever.net. It's not the best tutorial in the world, because it only really teaches how to map the first 4MB.
pcmattman wrote:What's the address of the second page table? 1024 higher than the first?
The second entry in the page directory is the physical address (+ flags etc) of the page table which provides page mappings for the second 4MB of virtual memory. Each page table is 4kB in length, and 4kB aligned. The way I do it is to get the physical memory for my page tables from my physical memory allocator, and then just write the value I get into the page directory. This means that the page tables can exist anywhere in physical memory, and are not necessarily contiguous.