Subversion Repositories HelenOS-historic

Rev

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

Rev 799 Rev 814
Line 42... Line 42...
42
{
42
{
43
    __address cur;
43
    __address cur;
44
 
44
 
45
    if (config.cpu_active == 1) {
45
    if (config.cpu_active == 1) {
46
        page_mapping_operations = &pt_mapping_operations;
46
        page_mapping_operations = &pt_mapping_operations;
47
   
47
       
48
        /*
48
        /*
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);