Subversion Repositories HelenOS

Rev

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

Rev 3022 Rev 4055
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup sparc64mm  
29
/** @addtogroup sparc64mm
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 50... Line 50...
50
 */
50
 */
51
static struct {
51
static struct {
52
    uintptr_t virt_page;
52
    uintptr_t virt_page;
53
    uintptr_t phys_page;
53
    uintptr_t phys_page;
54
    int pagesize_code;
54
    int pagesize_code;
55
} bsp_locked_dtlb_entry[DTLB_ENTRY_COUNT];
55
} bsp_locked_dtlb_entry[DTLB_MAX_LOCKED_ENTRIES];
56
 
56
 
57
/** Number of entries in bsp_locked_dtlb_entry array. */
57
/** Number of entries in bsp_locked_dtlb_entry array. */
58
static count_t bsp_locked_dtlb_entries = 0;
58
static count_t bsp_locked_dtlb_entries = 0;
59
#endif /* CONFIG_SMP */
59
#endif /* CONFIG_SMP */
60
 
60
 
Line 145... Line 145...
145
         */
145
         */
146
        dtlb_insert_mapping(virtaddr + i * sizemap[order].increment,
146
        dtlb_insert_mapping(virtaddr + i * sizemap[order].increment,
147
            physaddr + i * sizemap[order].increment,
147
            physaddr + i * sizemap[order].increment,
148
            sizemap[order].pagesize_code, true, false);
148
            sizemap[order].pagesize_code, true, false);
149
   
149
   
150
#ifdef CONFIG_SMP   
150
#ifdef CONFIG_SMP
151
        /*
151
        /*
152
         * Second, save the information about the mapping for APs.
152
         * Second, save the information about the mapping for APs.
153
         */
153
         */
154
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].virt_page =
154
        bsp_locked_dtlb_entry[bsp_locked_dtlb_entries].virt_page =
155
            virtaddr + i * sizemap[order].increment;
155
            virtaddr + i * sizemap[order].increment;