Rev 368 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 368 | Rev 492 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | 54 | ||
55 | /* |
55 | /* |
56 | * PA2KA(identity) mapping for all frames. |
56 | * PA2KA(identity) mapping for all frames. |
57 | */ |
57 | */ |
58 | for (i = 0; i < config.memory_size/PAGE_SIZE; i++) |
58 | for (i = 0; i < config.memory_size/PAGE_SIZE; i++) |
59 | map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); |
59 | page_mapping_insert(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); |
60 | 60 | ||
61 | trap_register(14, page_fault); |
61 | trap_register(14, page_fault); |
62 | write_cr3(KA2PA(dba)); |
62 | write_cr3(KA2PA(dba)); |
63 | } |
63 | } |
64 | else { |
64 | else { |