Re: Chapter 23 Demo Release
Posted: Tue Dec 21, 2010 9:37 pm
I'm just now getting a chance to dive into the demo, and I was getting the page fault too, anytime I tried to do anything after entering usermode. I have the virtual memory manager patch.
I solved it this way. The original code from the virtual memory manager initialization procedure was:
The code from the demo is:
So I commented out the writeable attribute and added the user one, and was getting the page fault. However, after changing it to...
...all is well. Maybe someone else had the same problem, and this will help them.
I solved it this way. The original code from the virtual memory manager initialization procedure was:
Code: Select all
pt_entry_add_attrib(&page, I86_PTE_PRESENT);
pt_entry_add_attrib(&page, I86_PTE_WRITABLE);
Code: Select all
pt_entry_add_attrib(&page, I86_PTE_PRESENT);
pt_entry_add_attrib(&page, I86_PTE_USER);
Code: Select all
pt_entry_add_attrib(&page, I86_PTE_PRESENT);
pt_entry_add_attrib(&page, I86_PTE_WRITABLE);
pt_entry_add_attrib(&page, I86_PTE_USER);