Subversion Repositories HelenOS-historic

Rev

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

Rev 1480 Rev 1609
Line 149... Line 149...
149
	rfi
149
	rfi
150
 
150
 
151
.org 0x100
151
.org 0x100
152
.global exc_system_reset
152
.global exc_system_reset
153
exc_system_reset:
153
exc_system_reset:
-
 
154
	CONTEXT_STORE
-
 
155
	
-
 
156
	lis r12, exc_dispatch@ha
-
 
157
	addi r12, r12, exc_dispatch@l
-
 
158
	mtsrr0 r12
-
 
159
	
-
 
160
	li r3, 0
154
	b exc_system_reset
161
	b jump_to_kernel
155
 
162
 
156
.org 0x200
163
.org 0x200
157
.global exc_machine_check
164
.global exc_machine_check
158
exc_machine_check:
165
exc_machine_check:
-
 
166
	CONTEXT_STORE
-
 
167
	
-
 
168
	lis r12, exc_dispatch@ha
-
 
169
	addi r12, r12, exc_dispatch@l
-
 
170
	mtsrr0 r12
-
 
171
	
-
 
172
	li r3, 1
159
	b exc_machine_check
173
	b jump_to_kernel
160
 
174
 
161
.org 0x300
175
.org 0x300
162
.global exc_data_storage
176
.global exc_data_storage
163
exc_data_storage:
177
exc_data_storage:
164
	CONTEXT_STORE
178
	CONTEXT_STORE
165
	
179
	
166
	lis r12, pht_refill@ha
180
	lis r12, exc_dispatch@ha
167
	addi r12, r12, pht_refill@l
181
	addi r12, r12, exc_dispatch@l
168
	mtsrr0 r12
182
	mtsrr0 r12
169
	
183
	
170
	li r3, 1
184
	li r3, 2
171
	b jump_to_kernel
185
	b jump_to_kernel
172
 
186
 
173
.org 0x400
187
.org 0x400
174
.global exc_instruction_storage
188
.global exc_instruction_storage
175
exc_instruction_storage:
189
exc_instruction_storage:
176
	CONTEXT_STORE
190
	CONTEXT_STORE
177
	
191
	
178
	lis r12, pht_refill@ha
192
	lis r12, exc_dispatch@ha
179
	addi r12, r12, pht_refill@l
193
	addi r12, r12, exc_dispatch@l
180
	mtsrr0 r12
194
	mtsrr0 r12
181
	
195
	
182
	li r3, 0
196
	li r3, 3
183
	b jump_to_kernel
197
	b jump_to_kernel
184
 
198
 
185
.org 0x500
199
.org 0x500
186
.global exc_external
200
.global exc_external
187
exc_external:
201
exc_external:
188
	CONTEXT_STORE
202
	CONTEXT_STORE
189
 
203
	
190
	lis r12, extint_handler@ha
204
	lis r12, exc_dispatch@ha
191
	addi r12, r12, extint_handler@l
205
	addi r12, r12, exc_dispatch@l
192
	mtsrr0 r12
206
	mtsrr0 r12
193
 
207
	
194
	li r3, 0
208
	li r3, 4
195
	b jump_to_kernel
209
	b jump_to_kernel
196
 
210
 
197
.org 0x600
211
.org 0x600
198
.global exc_alignment
212
.global exc_alignment
199
exc_alignment:
213
exc_alignment:
-
 
214
	CONTEXT_STORE
-
 
215
	
-
 
216
	lis r12, exc_dispatch@ha
-
 
217
	addi r12, r12, exc_dispatch@l
-
 
218
	mtsrr0 r12
-
 
219
	
-
 
220
	li r3, 5
200
	b exc_alignment
221
	b jump_to_kernel
201
 
222
 
202
.org 0x700
223
.org 0x700
203
.global exc_program
224
.global exc_program
204
exc_program:
225
exc_program:
-
 
226
	CONTEXT_STORE
-
 
227
	
-
 
228
	lis r12, exc_dispatch@ha
-
 
229
	addi r12, r12, exc_dispatch@l
-
 
230
	mtsrr0 r12
-
 
231
	
-
 
232
	li r3, 6
205
	b exc_program
233
	b jump_to_kernel
206
 
234
 
207
.org 0x800
235
.org 0x800
208
.global exc_fp_unavailable
236
.global exc_fp_unavailable
209
exc_fp_unavailable:
237
exc_fp_unavailable:
-
 
238
	CONTEXT_STORE
-
 
239
	
-
 
240
	lis r12, exc_dispatch@ha
-
 
241
	addi r12, r12, exc_dispatch@l
-
 
242
	mtsrr0 r12
-
 
243
	
-
 
244
	li r3, 7
210
	b exc_fp_unavailable
245
	b jump_to_kernel
211
 
246
 
212
.org 0x900
247
.org 0x900
213
.global exc_decrementer
248
.global exc_decrementer
214
exc_decrementer:
249
exc_decrementer:
215
	CONTEXT_STORE
250
	CONTEXT_STORE
216
 
251
 
217
	lis r12, exc_dispatch@ha
252
	lis r12, exc_dispatch@ha
218
	addi r12, r12, exc_dispatch@l
253
	addi r12, r12, exc_dispatch@l
219
	mtsrr0 r12
254
	mtsrr0 r12
220
	
255
	
221
	li r3, 10
256
	li r3, 8
222
	b jump_to_kernel
257
	b jump_to_kernel
223
 
258
 
224
.org 0xa00
259
.org 0xa00
225
.global exc_reserved0
260
.global exc_reserved0
226
exc_reserved0:
261
exc_reserved0:
-
 
262
	CONTEXT_STORE
-
 
263
	
-
 
264
	lis r12, exc_dispatch@ha
-
 
265
	addi r12, r12, exc_dispatch@l
-
 
266
	mtsrr0 r12
-
 
267
	
-
 
268
	li r3, 9
227
	b exc_reserved0
269
	b jump_to_kernel
228
 
270
 
229
.org 0xb00
271
.org 0xb00
230
.global exc_reserved1
272
.global exc_reserved1
231
exc_reserved1:
273
exc_reserved1:
-
 
274
	CONTEXT_STORE
-
 
275
	
-
 
276
	lis r12, exc_dispatch@ha
-
 
277
	addi r12, r12, exc_dispatch@l
-
 
278
	mtsrr0 r12
-
 
279
	
-
 
280
	li r3, 10
232
	b exc_reserved1
281
	b jump_to_kernel
233
 
282
 
234
.org 0xc00
283
.org 0xc00
235
.global exc_syscall
284
.global exc_syscall
236
exc_syscall:
285
exc_syscall:
237
	CONTEXT_STORE	
286
	CONTEXT_STORE	
Line 239... Line 288...
239
	b jump_to_kernel_syscall
288
	b jump_to_kernel_syscall
240
 
289
 
241
.org 0xd00
290
.org 0xd00
242
.global exc_trace
291
.global exc_trace
243
exc_trace:
292
exc_trace:
-
 
293
	CONTEXT_STORE
-
 
294
	
-
 
295
	lis r12, exc_dispatch@ha
-
 
296
	addi r12, r12, exc_dispatch@l
-
 
297
	mtsrr0 r12
-
 
298
	
-
 
299
	li r3, 12
244
	b exc_trace
300
	b jump_to_kernel