Subversion Repositories HelenOS-historic

Rev

Rev 799 | Rev 825 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 799 Rev 814
Line 49... Line 49...
49
         * PA2KA(identity) mapping for all frames.
49
         * PA2KA(identity) mapping for all frames.
50
         */
50
         */
51
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
51
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
52
            page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC);
52
            page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC);
53
        }
53
        }
54
 
-
 
55
        exc_register(14, "page_fault", (iroutine)page_fault);
54
        exc_register(14, "page_fault", (iroutine)page_fault);
56
        write_cr3((__address) AS_KERNEL->page_table);
55
        write_cr3((__address) AS_KERNEL->page_table);
57
    }
56
    }
58
    else {
57
    else {
59
        write_cr3((__address) AS_KERNEL->page_table);
58
        write_cr3((__address) AS_KERNEL->page_table);