forked from Imagelibrary/rtems
* 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>.
35 lines
895 B
C
35 lines
895 B
C
/*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/mips/idtcpu.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
void mips_install_isr_entries( void )
|
|
{
|
|
#if __mips == 1
|
|
void exc_utlb_code(void);
|
|
void exc_dbg_code(void);
|
|
void exc_norm_code(void);
|
|
|
|
memcpy( (void *)UT_VEC, exc_utlb_code, 40 ); /* utlbmiss vector */
|
|
memcpy( (void *)DB_VEC, exc_dbg_code, 40 );
|
|
memcpy( (void *)E_VEC, exc_norm_code, 40 ); /* exception vevtor */
|
|
|
|
#elif __mips == 3
|
|
void exc_tlb_code(void);
|
|
void exc_xtlb_code(void);
|
|
void exc_cache_code(void);
|
|
void exc_norm_code(void);
|
|
|
|
memcpy( (void *)T_VEC, exc_tlb_code, 40 ); /* tlbmiss vector */
|
|
memcpy( (void *)X_VEC, exc_xtlb_code, 40 ); /* xtlbmiss vector */
|
|
memcpy( (void *)C_VEC, exc_cache_code, 40 ); /* cache error vector */
|
|
memcpy( (void *)E_VEC, exc_norm_code, 40 ); /* exception vector */
|
|
#endif
|
|
|
|
rtems_cache_flush_entire_data();
|
|
}
|