Subversion Repositories HelenOS-historic

Rev

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

Rev 115 Rev 116
Line 58... Line 58...
58
        memsetb(dba, PAGE_SIZE, 0);
58
        memsetb(dba, PAGE_SIZE, 0);
59
       
59
       
60
        bootstrap_dba = dba;
60
        bootstrap_dba = dba;
61
 
61
 
62
        /*
62
        /*
63
         * Identity mapping for all but 0th page.
63
         * Identity mapping for all frames.
64
         * PA2KA(identity) mapping for all but 0th page.
64
         * PA2KA(identity) mapping for all frames.
65
         */
65
         */
66
        for (i = 1; i < frames; i++) {
66
        for (i = 0; i < frames; i++) {
67
            map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
67
            map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
68
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
68
            map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba));
69
        }
69
        }
70
 
70
 
71
        trap_register(14, page_fault);
71
        trap_register(14, page_fault);