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 50... Line 50...
50
        bootstrap_dba = dba;
50
        bootstrap_dba = dba;
51
 
51
 
52
        /*
52
        /*
53
         * PA2KA(identity) mapping for all frames.
53
         * PA2KA(identity) mapping for all frames.
54
         */
54
         */
55
        for (i = 0; i < frames; i++) {
55
        for (i = 0; i < config.memory_size/FRAME_SIZE; i++) {
56
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));
56
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));
57
        }
57
        }
58
 
58
 
59
        trap_register(14, page_fault);
59
        trap_register(14, page_fault);
60
        write_cr3(KA2PA(dba));
60
        write_cr3(KA2PA(dba));