Subversion Repositories HelenOS-historic

Rev

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

Rev 846 Rev 863
Line 34... Line 34...
34
#include <print.h>
34
#include <print.h>
35
#include <arch/types.h>
35
#include <arch/types.h>
36
#include <typedefs.h>
36
#include <typedefs.h>
37
#include <config.h>
37
#include <config.h>
38
#include <arch/trap/trap.h>
38
#include <arch/trap/trap.h>
-
 
39
#include <panic.h>
39
 
40
 
40
/** Initialize ITLB and DTLB.
41
/** Initialize ITLB and DTLB.
41
 *
42
 *
42
 * The goal of this function is to disable MMU
43
 * The goal of this function is to disable MMU
43
 * so that both TLBs can be purged and new
44
 * so that both TLBs can be purged and new
Line 95... Line 96...
95
 
96
 
96
    dmmu_enable();
97
    dmmu_enable();
97
    immu_enable();
98
    immu_enable();
98
}
99
}
99
 
100
 
-
 
101
/** ITLB miss handler. */
-
 
102
void fast_instruction_access_mmu_miss(void)
-
 
103
{
-
 
104
    panic("%s\n", __FUNCTION__);
-
 
105
}
-
 
106
 
-
 
107
/** DTLB miss handler. */
-
 
108
void fast_data_access_mmu_miss(void)
-
 
109
{
-
 
110
    panic("%s\n", __FUNCTION__);
-
 
111
}
-
 
112
 
-
 
113
/** DTLB protection fault handler. */
-
 
114
void fast_data_access_protection(void)
-
 
115
{
-
 
116
    panic("%s\n", __FUNCTION__);
-
 
117
}
-
 
118
 
100
/** Print contents of both TLBs. */
119
/** Print contents of both TLBs. */
101
void tlb_print(void)
120
void tlb_print(void)
102
{
121
{
103
    int i;
122
    int i;
104
    tlb_data_t d;
123
    tlb_data_t d;