|
RTEMS
5.0.0
|
Go to the documentation of this file. 16 #ifndef _RTEMS_TMTEST27 17 #error "This is an RTEMS internal file you must not include directly." 31 #define SIS_USE_SYNCHRONOUS_TRAP 0 37 #if (SIS_USE_SYNCHRONOUS_TRAP == 1) 39 #define TEST_VECTOR SPARC_SYNCHRONOUS_TRAP( 0x90 ) 41 #define MUST_WAIT_FOR_INTERRUPT 1 43 #define Install_tm27_vector( handler ) \ 44 set_vector( (handler), TEST_VECTOR, 1 ); 46 #define Cause_tm27_intr() \ 47 __asm__ volatile( "ta 0x10; nop " ); 49 #define Clear_tm27_intr() 51 #define Lower_tm27_intr() 59 #define TEST_INTERRUPT_SOURCE LEON_INTERRUPT_EXTERNAL_1 60 #define TEST_VECTOR LEON_TRAP_TYPE( TEST_INTERRUPT_SOURCE ) 61 #define TEST_INTERRUPT_SOURCE2 LEON_INTERRUPT_EXTERNAL_1+1 62 #define TEST_VECTOR2 LEON_TRAP_TYPE( TEST_INTERRUPT_SOURCE2 ) 63 #define MUST_WAIT_FOR_INTERRUPT 1 65 #define Install_tm27_vector( handler ) \ 66 set_vector( (handler), TEST_VECTOR, 1 ); \ 67 set_vector( (handler), TEST_VECTOR2, 1 ); 69 #define Cause_tm27_intr() \ 71 LEON_Force_interrupt( TEST_INTERRUPT_SOURCE+(Interrupt_nest>>1)); \ 77 #define Clear_tm27_intr() \ 78 LEON_Clear_interrupt( TEST_INTERRUPT_SOURCE ) 80 #define Lower_tm27_intr()