Subversion Repositories HelenOS

Rev

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

Rev 3386 Rev 4153
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
#ifdef ia64
-
 
30
 
-
 
31
#include <print.h>
29
#include <print.h>
32
#include <test.h>
30
#include <test.h>
33
#include <mm/page.h>
31
#include <mm/page.h>
34
#include <mm/frame.h>
32
#include <mm/frame.h>
35
#include <mm/as.h>
33
#include <mm/as.h>
Line 45... Line 43...
45
{
43
{
46
    tlb_entry_t entryi;
44
    tlb_entry_t entryi;
47
    tlb_entry_t entryd;
45
    tlb_entry_t entryd;
48
   
46
   
49
    int i;
47
    int i;
50
                                                                                                                                                                                   
-
 
-
 
48
   
51
    entryd.word[0] = 0;
49
    entryd.word[0] = 0;
52
    entryd.word[1] = 0;
50
    entryd.word[1] = 0;
53
                                               
51
   
54
    entryd.p = true;                 /* present */
52
    entryd.p = true;                 /* present */
55
    entryd.ma = MA_WRITEBACK;
53
    entryd.ma = MA_WRITEBACK;
56
    entryd.a = true;                 /* already accessed */
54
    entryd.a = true;                 /* already accessed */
57
    entryd.d = true;                 /* already dirty */
55
    entryd.d = true;                 /* already dirty */
58
    entryd.pl = PL_KERNEL;
56
    entryd.pl = PL_KERNEL;
Line 75... Line 73...
75
    for (i = 0; i < 100; i++) {
73
    for (i = 0; i < 100; i++) {
76
        itc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 8, entryi);
74
        itc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 8, entryi);
77
        dtc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 9, entryd);
75
        dtc_mapping_insert(0 + i * (1 << PAGE_WIDTH), 9, entryd);
78
    }
76
    }
79
   
77
   
80
    tlb_invalidate_pages(8,0x0c000,14);
78
    tlb_invalidate_pages(8, 0x0c000, 14);
81
   
79
   
82
    /*tlb_invalidate_all();*/
80
    /* tlb_invalidate_all(); */
83
   
81
   
84
    return NULL;
82
    return NULL;
85
}
83
}
86
 
-
 
87
#endif
-