Rev 825 | Rev 1382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 825 | Rev 958 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size)) |
58 | if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size)) |
59 | flags |= PAGE_GLOBAL; |
59 | flags |= PAGE_GLOBAL; |
60 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
60 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); |
61 | } |
61 | } |
62 | 62 | ||
63 | exc_register(14, "page_fault", page_fault); |
63 | exc_register(14, "page_fault", (iroutine) page_fault); |
64 | write_cr3((__address) AS_KERNEL->page_table); |
64 | write_cr3((__address) AS_KERNEL->page_table); |
65 | } |
65 | } |
66 | else { |
66 | else { |
67 | write_cr3((__address) AS_KERNEL->page_table); |
67 | write_cr3((__address) AS_KERNEL->page_table); |
68 | } |
68 | } |