Rev 691 | Rev 756 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 691 | Rev 755 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include <arch/mm/page.h> |
29 | #include <arch/mm/page.h> |
30 | #include <genarch/mm/page_pt.h> |
30 | #include <genarch/mm/page_pt.h> |
31 | #include <arch/mm/frame.h> |
31 | #include <arch/mm/frame.h> |
32 | #include <mm/page.h> |
32 | #include <mm/page.h> |
33 | #include <mm/frame.h> |
33 | #include <mm/frame.h> |
34 | #include <mm/asid.h> |
34 | #include <mm/as.h> |
35 | #include <arch/interrupt.h> |
35 | #include <arch/interrupt.h> |
36 | #include <arch/asm.h> |
36 | #include <arch/asm.h> |
37 | #include <config.h> |
37 | #include <config.h> |
38 | #include <memstr.h> |
38 | #include <memstr.h> |
39 | #include <interrupt.h> |
39 | #include <interrupt.h> |
Line 55... | Line 55... | ||
55 | 55 | ||
56 | /* |
56 | /* |
57 | * PA2KA(identity) mapping for all frames. |
57 | * PA2KA(identity) mapping for all frames. |
58 | */ |
58 | */ |
59 | for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { |
59 | for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { |
60 | page_mapping_insert(PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
60 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
61 | } |
61 | } |
62 | 62 | ||
63 | exc_register(14, "page_fault", page_fault); |
63 | exc_register(14, "page_fault", page_fault); |
64 | write_cr3(KA2PA(dba)); |
64 | write_cr3(KA2PA(dba)); |
65 | } |
65 | } |