Posted: Tue Jun 26, 2007 1:45 pm
Good decision, you're now busy with PMM so it's wise to (maybe temporarily) use GRUB for now. I'm doing the same as you, and later on switching to custom stage1/stage2 boot loaders
The Place to Start for Operating System Developers
http://f.osdev.org/
Building the stack before enabling paging is a bit tricky because this makes allocating the pages for the stack more difficult.bughunter wrote:I think you're overloading him with stuff. First you start with a Physical Memory Manager.
(...)
The PMM itself has _nothing_ to do with page directories or page tables itself.
You just initialize your PMM and then you create a page directory to map the kernel and page stack pages into memory, then you enable paging.
That's totally your point of view. For me, it doesn't make finding a free page for the stack any harder at all. It just really depends on how efficient your code is and in what way you build your stack. I could easily port my code to make it build the stack without having paging enabled.JJeronimo wrote:Building the stack before enabling paging is a bit tricky because this makes allocating the pages for the stack more difficult.bughunter wrote:I think you're overloading him with stuff. First you start with a Physical Memory Manager.
(...)
The PMM itself has _nothing_ to do with page directories or page tables itself.
You just initialize your PMM and then you create a page directory to map the kernel and page stack pages into memory, then you enable paging.