page fault when switching to cloned kernel directory

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.
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: page fault when switching to cloned kernel directory

Post by neon »

but i know for a fact that my IDT (or atleast the page tables) is at physical address 0x107ff8, or does this have to be page aligned?
Only pages and page tables must be paged aligned do to the entry formats of page tables and page directory tables. The actual page directory table itself does not need to be; but it may be a small performance hit if it is not.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply