Subversion Repositories HelenOS-historic

Rev

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

Rev 667 Rev 867
Line 29... Line 29...
29
#include <arch/trap/trap.h>
29
#include <arch/trap/trap.h>
30
#include <arch/trap/trap_table.h>
30
#include <arch/trap/trap_table.h>
31
#include <arch/trap/regwin.h>
31
#include <arch/trap/regwin.h>
32
#include <arch/trap/exception.h>
32
#include <arch/trap/exception.h>
33
#include <arch/trap/interrupt.h>
33
#include <arch/trap/interrupt.h>
-
 
34
#include <arch/trap/mmu.h>
34
#include <arch/asm.h>
35
#include <arch/asm.h>
35
#include <memstr.h>
36
#include <memstr.h>
36
#include <debug.h>
37
#include <debug.h>
37
#include <arch/types.h>
38
#include <arch/types.h>
38
#include <typedefs.h>
39
#include <typedefs.h>
Line 78... Line 79...
78
    trap_install_handler(TT_INTERRUPT_LEVEL_12, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
79
    trap_install_handler(TT_INTERRUPT_LEVEL_12, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
79
    trap_install_handler(TT_INTERRUPT_LEVEL_13, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
80
    trap_install_handler(TT_INTERRUPT_LEVEL_13, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
80
    trap_install_handler(TT_INTERRUPT_LEVEL_14, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
81
    trap_install_handler(TT_INTERRUPT_LEVEL_14, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
81
    trap_install_handler(TT_INTERRUPT_LEVEL_15, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
82
    trap_install_handler(TT_INTERRUPT_LEVEL_15, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
82
    trap_install_handler(TT_INTERRUPT_VECTOR_TRAP, INTERRUPT_VECTOR_TRAP_HANDLER_SIZE, false);
83
    trap_install_handler(TT_INTERRUPT_VECTOR_TRAP, INTERRUPT_VECTOR_TRAP_HANDLER_SIZE, false);
-
 
84
 
-
 
85
    /*
-
 
86
     * Kernel must become independent on Open Firmware calls before MMU handlers are enabled.
-
 
87
     */
-
 
88
/*
-
 
89
    trap_install_handler(TT_FAST_INSTRUCTION_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, false);
-
 
90
    trap_install_handler(TT_FAST_DATA_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, false);
-
 
91
    trap_install_handler(TT_FAST_DATA_ACCESS_PROTECTION, FAST_MMU_HANDLER_SIZE, false);
-
 
92
    trap_install_handler(TT_FAST_INSTRUCTION_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, true);
-
 
93
    trap_install_handler(TT_FAST_DATA_ACCESS_MMU_MISS, FAST_MMU_HANDLER_SIZE, true);
-
 
94
    trap_install_handler(TT_FAST_DATA_ACCESS_PROTECTION, FAST_MMU_HANDLER_SIZE, true);
-
 
95
*/
-
 
96
 
83
}
97
}
84
 
98
 
85
/** Copy trap handler to active trap table.
99
/** Copy trap handler to active trap table.
86
 *
100
 *
87
 * The handler is copied from trap_table_kernel to trap_handler.
101
 * The handler is copied from trap_table_kernel to trap_handler.