Rev 690 | Rev 756 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 690 | 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/frame.h> |
32 | #include <mm/frame.h> |
33 | #include <mm/page.h> |
33 | #include <mm/page.h> |
34 | #include <mm/asid.h> |
34 | #include <mm/as.h> |
35 | #include <arch/types.h> |
35 | #include <arch/types.h> |
36 | #include <config.h> |
36 | #include <config.h> |
37 | #include <func.h> |
37 | #include <func.h> |
38 | #include <arch/interrupt.h> |
38 | #include <arch/interrupt.h> |
39 | #include <arch/asm.h> |
39 | #include <arch/asm.h> |
Line 59... | Line 59... | ||
59 | 59 | ||
60 | /* |
60 | /* |
61 | * PA2KA(identity) mapping for all frames until last_frame. |
61 | * PA2KA(identity) mapping for all frames until last_frame. |
62 | */ |
62 | */ |
63 | for (cur = 0; cur < last_frame; cur += FRAME_SIZE) |
63 | for (cur = 0; cur < last_frame; cur += FRAME_SIZE) |
64 | page_mapping_insert(PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE, KA2PA(dba)); |
64 | page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE, KA2PA(dba)); |
65 | 65 | ||
66 | exc_register(14, "page_fault", page_fault); |
66 | exc_register(14, "page_fault", page_fault); |
67 | write_cr3(KA2PA(dba)); |
67 | write_cr3(KA2PA(dba)); |
68 | } |
68 | } |
69 | else { |
69 | else { |