Subversion Repositories HelenOS-historic

Rev

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

Rev 793 Rev 869
Line 53... Line 53...
53
}
53
}
54
 
54
 
55
/** Initialize VHPT and region registers. */
55
/** Initialize VHPT and region registers. */
56
void set_environment(void)
56
void set_environment(void)
57
{
57
{
-
 
58
 
-
 
59
//#ifdef NEVERDEFINED   
58
    region_register rr;
60
    region_register rr;
59
    pta_register pta;  
61
    pta_register pta;  
60
    int i;
62
    int i;
61
   
63
 
62
    /*
64
    /*
63
     * First set up kernel region register.
65
     * First set up kernel region register.
64
     */
66
     */
65
    rr.word = rr_read(VRN_KERNEL);
67
    rr.word = rr_read(VRN_KERNEL);
66
    rr.map.ve = 0;                  /* disable VHPT walker */
68
    rr.map.ve = 0;                  /* disable VHPT walker */
Line 95... Line 97...
95
    pta.map.size = VHPT_WIDTH;
97
    pta.map.size = VHPT_WIDTH;
96
    pta.map.base = VHPT_BASE >> PTA_BASE_SHIFT;
98
    pta.map.base = VHPT_BASE >> PTA_BASE_SHIFT;
97
    pta_write(pta.word);
99
    pta_write(pta.word);
98
    srlz_i();
100
    srlz_i();
99
    srlz_d();
101
    srlz_d();
-
 
102
   
-
 
103
//#endif
-
 
104
 
-
 
105
    return ;   
-
 
106
   
100
}
107
}
101
 
108
 
102
/** Calculate address of collision chain from VPN and ASID.
109
/** Calculate address of collision chain from VPN and ASID.
103
 *
110
 *
104
 * Interrupts must be disabled.
111
 * Interrupts must be disabled.