4.104.114.84.95
Last change
on this file since 0cd196b7 was
0cd196b7,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/03/04 at 00:15:56
|
2004-04-02 Ralf Corsepius <ralf_corsepius@…>
- clock/clock.S, mongoosev/vectorisrs/vectorisrs.c,
shared/interrupts/isr_entries.S,
shared/interrupts/vectorexceptions.c, timer/gettime.S: Include
<rtems/mips/iregdef.h> instead of <iregdef.h>.
- clock/clock.S, mongoosev/vectorisrs/vectorisrs.c,
shared/interrupts/installisrentries.c,
shared/interrupts/isr_entries.S,
shared/interrupts/vectorexceptions.c, timer/gettime.S: Include
<rtems/mips/idtcpu.h> instead of <idtcpu.h>.
|
-
Property mode set to
100644
|
File size:
895 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #include <rtems.h> |
---|
6 | #include <rtems/mips/idtcpu.h> |
---|
7 | #include <stdlib.h> |
---|
8 | #include <string.h> |
---|
9 | |
---|
10 | void mips_install_isr_entries( void ) |
---|
11 | { |
---|
12 | #if __mips == 1 |
---|
13 | void exc_utlb_code(void); |
---|
14 | void exc_dbg_code(void); |
---|
15 | void exc_norm_code(void); |
---|
16 | |
---|
17 | memcpy( (void *)UT_VEC, exc_utlb_code, 40 ); /* utlbmiss vector */ |
---|
18 | memcpy( (void *)DB_VEC, exc_dbg_code, 40 ); |
---|
19 | memcpy( (void *)E_VEC, exc_norm_code, 40 ); /* exception vevtor */ |
---|
20 | |
---|
21 | #elif __mips == 3 |
---|
22 | void exc_tlb_code(void); |
---|
23 | void exc_xtlb_code(void); |
---|
24 | void exc_cache_code(void); |
---|
25 | void exc_norm_code(void); |
---|
26 | |
---|
27 | memcpy( (void *)T_VEC, exc_tlb_code, 40 ); /* tlbmiss vector */ |
---|
28 | memcpy( (void *)X_VEC, exc_xtlb_code, 40 ); /* xtlbmiss vector */ |
---|
29 | memcpy( (void *)C_VEC, exc_cache_code, 40 ); /* cache error vector */ |
---|
30 | memcpy( (void *)E_VEC, exc_norm_code, 40 ); /* exception vector */ |
---|
31 | #endif |
---|
32 | |
---|
33 | rtems_cache_flush_entire_data(); |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.