Almost enabled paging... or so I thought
I added functions to my physical page allocator to allow the allocation and de-allocation of physical memory addresses, rather than just a page_t struct. This has introduced a new problem for de-allocation: de-allocation (adding a physical page back to the stack allocator) will require a search of the stack to find an open page_t struct. This causes time complexity is O(n). I could get around this by implementing a doubly-linked stack. Not sure how I will handle this.
However, I am having some problems right now enabling paging. All I need to do is set the cr0 and cr3 accordingly, but writing cr0 causes a crash.
I'm not sure what I am doing wrong. Make sure to check that the page directory is page-aligned (should add code to check for this all the time). A simple re-read of the Intel documentation along with the tutorials on osdev should fix this issue.
1 Comments:
Turn your mobile phone into an extraordinary
gadget with LED Black - Berry apps. The bulbs can be
bought from any electrical store and even on the Internet.
There's a color screen option which works the same way as the light bulb but has less of a harsh glare.
Here is my site: led light
Post a Comment
<< Home