Rev 226 | Rev 323 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 226 | Rev 229 | ||
---|---|---|---|
Line 52... | Line 52... | ||
52 | /* |
52 | /* |
53 | * Identity mapping for all frames. |
53 | * Identity mapping for all frames. |
54 | * PA2KA(identity) mapping for all frames. |
54 | * PA2KA(identity) mapping for all frames. |
55 | */ |
55 | */ |
56 | for (i = 0; i < frames; i++) { |
56 | for (i = 0; i < frames; i++) { |
57 | map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
- | |
58 | map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
57 | map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); |
59 | } |
58 | } |
60 | 59 | ||
61 | trap_register(14, page_fault); |
60 | trap_register(14, page_fault); |
62 | write_cr3(KA2PA(dba)); |
61 | write_cr3(KA2PA(dba)); |