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);