Subversion Repositories HelenOS

Rev

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

Rev 1982 Rev 2015
Line 71... Line 71...
71
        /*
71
        /*
72
         * Copy locked DTLB entries from the BSP.
72
         * Copy locked DTLB entries from the BSP.
73
         */    
73
         */    
74
        for (i = 0; i < bsp_locked_dtlb_entries; i++) {
74
        for (i = 0; i < bsp_locked_dtlb_entries; i++) {
75
            dtlb_insert_mapping(bsp_locked_dtlb_entry[i].virt_page,
75
            dtlb_insert_mapping(bsp_locked_dtlb_entry[i].virt_page,
-
 
76
                bsp_locked_dtlb_entry[i].phys_page,
76
                bsp_locked_dtlb_entry[i].phys_page, bsp_locked_dtlb_entry[i].pagesize_code,
77
                bsp_locked_dtlb_entry[i].pagesize_code, true,
77
                true, false);
78
                false);
78
        }
79
        }
79
#endif  
80
#endif  
80
 
81
 
81
    }
82
    }
82
}
83
}
Line 149... Line 150...
149
   
150
   
150
#ifdef CONFIG_SMP   
151
#ifdef CONFIG_SMP   
151
        /*
152
        /*
152
         * Second, save the information about the mapping for APs.
153
         * Second, save the information about the mapping for APs.
153
         */
154
         */
154
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].virt_page = virtaddr + i*sizemap[order].increment;
155
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].virt_page =
-
 
156
            virtaddr + i*sizemap[order].increment;
155
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].phys_page = physaddr + i*sizemap[order].increment;
157
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].phys_page =
-
 
158
            physaddr + i*sizemap[order].increment;
156
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].pagesize_code = sizemap[order].pagesize_code;
159
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].pagesize_code =
-
 
160
            sizemap[order].pagesize_code;
157
        bsp_locked_dtlb_entries++;
161
        bsp_locked_dtlb_entries++;
158
#endif
162
#endif
159
    }
163
    }
160
   
164
   
161
    return virtaddr;
165
    return virtaddr;