Subversion Repositories HelenOS-historic

Rev

Rev 793 | Rev 814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 793 Rev 799
Line 50... Line 50...
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
 
54
 
55
        exc_register(14, "page_fault", page_fault);
55
        exc_register(14, "page_fault", (iroutine)page_fault);
56
        write_cr3((__address) AS_KERNEL->page_table);
56
        write_cr3((__address) AS_KERNEL->page_table);
57
    }
57
    }
58
    else {
58
    else {
59
        write_cr3((__address) AS_KERNEL->page_table);
59
        write_cr3((__address) AS_KERNEL->page_table);
60
    }
60
    }