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 51... | Line 51... | ||
51 | 51 | ||
52 | /* |
52 | /* |
53 | * PA2KA(identity) mapping for all frames. |
53 | * PA2KA(identity) mapping for all frames. |
54 | */ |
54 | */ |
55 | for (i = 0; i < config.memory_size/FRAME_SIZE; i++) { |
55 | for (i = 0; i < config.memory_size/FRAME_SIZE; i++) { |
56 | map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
56 | page_mapping_insert(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
57 | } |
57 | } |
58 | 58 | ||
59 | trap_register(14, page_fault); |
59 | trap_register(14, page_fault); |
60 | write_cr3(KA2PA(dba)); |
60 | write_cr3(KA2PA(dba)); |
61 | } |
61 | } |