Subversion Repositories HelenOS-historic

Rev

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

Rev 634 Rev 663
Line 40... Line 40...
40
 
40
 
41
.text
41
.text
42
 
42
 
43
#include <arch/trap/trap_table.h>
43
#include <arch/trap/trap_table.h>
44
#include <arch/trap/regwin.h>
44
#include <arch/trap/regwin.h>
-
 
45
#include <arch/trap/interrupt.h>
45
 
46
 
46
#define TABLE_SIZE	TRAP_TABLE_SIZE
47
#define TABLE_SIZE	TRAP_TABLE_SIZE
47
#define ENTRY_SIZE	TRAP_TABLE_ENTRY_SIZE
48
#define ENTRY_SIZE	TRAP_TABLE_ENTRY_SIZE
48
 
49
 
49
/*
50
/*
Line 51... Line 52...
51
 */
52
 */
52
.align TABLE_SIZE
53
.align TABLE_SIZE
53
.global trap_table
54
.global trap_table
54
trap_table:
55
trap_table:
55
 
56
 
56
/* TT = 0x24, TL = 0 *, clean_window handler */
57
/* TT = 0x24, TL = 0, clean_window handler */
57
.org trap_table + TT_CLEAN_WINDOW*ENTRY_SIZE
58
.org trap_table + TT_CLEAN_WINDOW*ENTRY_SIZE
58
.global clean_window_handler
59
.global clean_window_handler
59
clean_window_handler:
60
clean_window_handler:
60
	CLEAN_WINDOW_HANDLER
61
	CLEAN_WINDOW_HANDLER
61
 
62
 
-
 
63
/* TT = 0x60, TL = 0, interrupt_vector_trap handler */
-
 
64
.org trap_table + TT_INTERRUPT_VECTOR_TRAP*ENTRY_SIZE
-
 
65
.global interrupt_vector_trap_handler
-
 
66
interrupt_vector_trap_handler:
-
 
67
	INTERRUPT_VECTOR_TRAP_HANDLER
-
 
68
 
62
/* TT = 0x80, TL = 0 *, spill_0_normal handler */
69
/* TT = 0x80, TL = 0, spill_0_normal handler */
63
.org trap_table + TT_SPILL_0_NORMAL*ENTRY_SIZE
70
.org trap_table + TT_SPILL_0_NORMAL*ENTRY_SIZE
64
.global spill_0_normal
71
.global spill_0_normal
65
spill_0_normal:
72
spill_0_normal:
66
	SPILL_NORMAL_HANDLER
73
	SPILL_NORMAL_HANDLER
67
 
74
 
68
/* TT = 0xc0, TL = 0 *, fill_0_normal handler */
75
/* TT = 0xc0, TL = 0, fill_0_normal handler */
69
.org trap_table + TT_FILL_0_NORMAL*ENTRY_SIZE
76
.org trap_table + TT_FILL_0_NORMAL*ENTRY_SIZE
-
 
77
.global fill_0_normal
70
fill_0_normal:
78
fill_0_normal:
71
	FILL_NORMAL_HANDLER
79
	FILL_NORMAL_HANDLER
72
 
80
 
73
/*
81
/*
74
 * Software traps for TL=0.
82
 * Handlers for TL>0.
75
 */
83
 */
76
.org trap_table + 256*ENTRY_SIZE
-
 
77
tl_0_software_traps:
-
 
78
 
84
 
79
/* Reserved area. */
85
/* TT = 0x24, TL > 0, clean_window handler */
80
.org trap_table + 384*ENTRY_SIZE
86
.org trap_table + (TT_CLEAN_WINDOW+512)*ENTRY_SIZE
-
 
87
.global clean_window_handler_high
-
 
88
clean_window_handler_high:
81
.space 128*ENTRY_SIZE, 0
89
	CLEAN_WINDOW_HANDLER
82
 
90
 
83
/*
-
 
84
 * Hardware interrupts for TL>0.
-
 
85
 */
-
 
86
.org trap_table + 512*ENTRY_SIZE
-
 
87
tl_non_0_hardware_traps:
-
 
88
 
91
 
89
/*
-
 
90
 * Register window spill/fill traps for TL>0.
92
/* TT = 0x80, TL > 0, spill_0_normal handler */
91
 */
93
 
92
.org trap_table + 640*ENTRY_SIZE
94
.org trap_table + (TT_SPILL_0_NORMAL+512)*ENTRY_SIZE
-
 
95
.global spill_0_normal_high
93
tl_non_0_regwin_traps:
96
spill_0_normal_high:
-
 
97
	SPILL_NORMAL_HANDLER
94
 
98
 
95
/*
-
 
96
 * Software traps for TL>0.
-
 
97
 */
-
 
98
.org trap_table + 768*ENTRY_SIZE
-
 
99
tl_non_0_software_traps:
-
 
100
 
99
 
101
/* Reserved area. */
100
/* TT = 0xc0, TL > 0, fill_0_normal handler */
102
.org trap_table + 896*ENTRY_SIZE
101
.org trap_table + (TT_FILL_0_NORMAL+512)*ENTRY_SIZE
103
.space 128*ENTRY_SIZE, 0
102
.global fill_0_normal_high
-
 
103
fill_0_normal_high:
-
 
104
	FILL_NORMAL_HANDLER
-
 
105
 
104
 
106
 
105
 
107
 
106
/*
108
/*
107
 * Save trap table.
109
 * Save trap table.
108
 */
110
 */
-
 
111
.align TABLE_SIZE
109
.global trap_table_save
112
.global trap_table_save
110
trap_table_save:
113
trap_table_save:
111
	.space TABLE_SIZE, 0
114
	.space TABLE_SIZE, 0