Subversion Repositories HelenOS-historic

Rev

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

Rev 663 Rev 664
Line 33... Line 33...
33
#include <arch/asm.h>
33
#include <arch/asm.h>
34
#include <memstr.h>
34
#include <memstr.h>
35
#include <debug.h>
35
#include <debug.h>
36
#include <arch/types.h>
36
#include <arch/types.h>
37
#include <typedefs.h>
37
#include <typedefs.h>
-
 
38
#include <arch/drivers/tick.h>
38
 
39
 
39
/** Initialize trap table. */
40
/** Initialize trap table. */
40
void trap_init(void)
41
void trap_init(void)
41
{
42
{
42
    /*
43
    /*
Line 56... Line 57...
56
    trap_install_handler(TT_SPILL_0_NORMAL, SPILL_HANDLER_SIZE, false);
57
    trap_install_handler(TT_SPILL_0_NORMAL, SPILL_HANDLER_SIZE, false);
57
    trap_install_handler(TT_FILL_0_NORMAL, FILL_HANDLER_SIZE, false);
58
    trap_install_handler(TT_FILL_0_NORMAL, FILL_HANDLER_SIZE, false);
58
    trap_install_handler(TT_CLEAN_WINDOW, CLEAN_WINDOW_HANDLER_SIZE, true);
59
    trap_install_handler(TT_CLEAN_WINDOW, CLEAN_WINDOW_HANDLER_SIZE, true);
59
    trap_install_handler(TT_SPILL_0_NORMAL, SPILL_HANDLER_SIZE, true);
60
    trap_install_handler(TT_SPILL_0_NORMAL, SPILL_HANDLER_SIZE, true);
60
    trap_install_handler(TT_FILL_0_NORMAL, FILL_HANDLER_SIZE, true);
61
    trap_install_handler(TT_FILL_0_NORMAL, FILL_HANDLER_SIZE, true);
-
 
62
    trap_install_handler(TT_INTERRUPT_LEVEL_1, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
63
    trap_install_handler(TT_INTERRUPT_LEVEL_2, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
64
    trap_install_handler(TT_INTERRUPT_LEVEL_3, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
65
    trap_install_handler(TT_INTERRUPT_LEVEL_4, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
66
    trap_install_handler(TT_INTERRUPT_LEVEL_5, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
67
    trap_install_handler(TT_INTERRUPT_LEVEL_6, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
61
   
-
 
-
 
68
    trap_install_handler(TT_INTERRUPT_LEVEL_7, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
69
    trap_install_handler(TT_INTERRUPT_LEVEL_8, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
70
    trap_install_handler(TT_INTERRUPT_LEVEL_9, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
71
    trap_install_handler(TT_INTERRUPT_LEVEL_10, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
72
    trap_install_handler(TT_INTERRUPT_LEVEL_11, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
73
    trap_install_handler(TT_INTERRUPT_LEVEL_12, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
74
    trap_install_handler(TT_INTERRUPT_LEVEL_13, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
75
    trap_install_handler(TT_INTERRUPT_LEVEL_14, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
-
 
76
    trap_install_handler(TT_INTERRUPT_LEVEL_15, INTERRUPT_LEVEL_N_HANDLER_SIZE, false);
62
    trap_install_handler(TT_INTERRUPT_VECTOR_TRAP, INTERRUPT_VECTOR_TRAP_HANDLER_SIZE, false);
77
    trap_install_handler(TT_INTERRUPT_VECTOR_TRAP, INTERRUPT_VECTOR_TRAP_HANDLER_SIZE, false);
63
}
78
}
64
 
79
 
65
/** Copy trap handler to active trap table.
80
/** Copy trap handler to active trap table.
66
 *
81
 *