Rev 2071 | Rev 2222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2106 | ||
---|---|---|---|
Line 66... | Line 66... | ||
66 | flags |= PAGE_GLOBAL; |
66 | flags |= PAGE_GLOBAL; |
67 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
67 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
68 | } |
68 | } |
69 | 69 | ||
70 | exc_register(14, "page_fault", (iroutine) page_fault); |
70 | exc_register(14, "page_fault", (iroutine) page_fault); |
71 | write_cr3((uintptr_t) AS_KERNEL->page_table); |
71 | write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); |
72 | } |
72 | } |
73 | else { |
73 | else { |
74 | write_cr3((uintptr_t) AS_KERNEL->page_table); |
74 | write_cr3((uintptr_t) AS_KERNEL->genarch.page_table); |
75 | } |
75 | } |
76 | 76 | ||
77 | paging_on(); |
77 | paging_on(); |
78 | } |
78 | } |
79 | 79 |