Subversion Repositories HelenOS-historic

Rev

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

Rev 323 Rev 368
Line 53... Line 53...
53
        bootstrap_dba = dba;
53
        bootstrap_dba = dba;
54
       
54
       
55
        /*
55
        /*
56
         * PA2KA(identity) mapping for all frames.
56
         * PA2KA(identity) mapping for all frames.
57
         */
57
         */
58
        for (i = 0; i < frames; i++)
58
        for (i = 0; i < config.memory_size/PAGE_SIZE; i++)
59
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
59
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
60
 
60
 
61
        trap_register(14, page_fault);
61
        trap_register(14, page_fault);
62
        write_cr3(KA2PA(dba));
62
        write_cr3(KA2PA(dba));
63
    }
63
    }