forked from Imagelibrary/rtems
2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen09.c: Do not use Simple Vectored Interrupt calls on architectures they are not supported on.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-07-17 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* sp09/screen09.c: Do not use Simple Vectored Interrupt calls on
|
||||||
|
architectures they are not supported on.
|
||||||
|
|
||||||
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2008-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* sp43/init.c, sp43/sp43.scn: Add call to rtems_get_version_string().
|
* sp43/init.c, sp43/sp43.scn: Add call to rtems_get_version_string().
|
||||||
|
|||||||
@@ -24,41 +24,50 @@ void Screen9()
|
|||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_isr_entry old_service_routine;
|
rtems_isr_entry old_service_routine;
|
||||||
|
|
||||||
status = rtems_interrupt_catch(
|
#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
|
||||||
Service_routine,
|
puts( "TRUE" );
|
||||||
ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
|
|
||||||
&old_service_routine
|
|
||||||
);
|
|
||||||
fatal_directive_status(
|
|
||||||
status,
|
|
||||||
RTEMS_INVALID_NUMBER,
|
|
||||||
"rtems_interrupt_catch with invalid vector"
|
|
||||||
);
|
|
||||||
puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
|
|
||||||
|
|
||||||
#if defined(_C3x) || defined(_C4x)
|
|
||||||
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" );
|
|
||||||
#else
|
#else
|
||||||
status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
|
puts( "FALSE" );
|
||||||
fatal_directive_status(
|
|
||||||
status,
|
|
||||||
RTEMS_INVALID_ADDRESS,
|
|
||||||
"rtems_interrupt_catch with invalid handler"
|
|
||||||
);
|
|
||||||
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_C3x) || defined(_C4x)
|
#if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
|
||||||
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
|
defined(_C3x) || defined(_C4x))
|
||||||
#else
|
puts(
|
||||||
status = rtems_interrupt_catch( Service_routine, 3, NULL );
|
"TA1 - rtems_interrupt_catch - "
|
||||||
fatal_directive_status(
|
"bad handler RTEMS_INVALID_ADDRESS -- SKIPPED"
|
||||||
status,
|
);
|
||||||
RTEMS_INVALID_ADDRESS,
|
puts(
|
||||||
"rtems_interrupt_catch with invalid old isr pointer"
|
"TA1 - rtems_interrupt_catch - "
|
||||||
);
|
"old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
|
||||||
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
|
#else
|
||||||
#endif
|
status = rtems_interrupt_catch(
|
||||||
|
Service_routine,
|
||||||
|
ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
|
||||||
|
&old_service_routine
|
||||||
|
);
|
||||||
|
fatal_directive_status(
|
||||||
|
status,
|
||||||
|
RTEMS_INVALID_NUMBER,
|
||||||
|
"rtems_interrupt_catch with invalid vector"
|
||||||
|
);
|
||||||
|
puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
|
||||||
|
|
||||||
|
status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
|
||||||
|
fatal_directive_status(
|
||||||
|
status,
|
||||||
|
RTEMS_INVALID_ADDRESS,
|
||||||
|
"rtems_interrupt_catch with invalid handler"
|
||||||
|
);
|
||||||
|
puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
|
||||||
|
|
||||||
|
status = rtems_interrupt_catch( Service_routine, 3, NULL );
|
||||||
|
fatal_directive_status(
|
||||||
|
status,
|
||||||
|
RTEMS_INVALID_ADDRESS,
|
||||||
|
"rtems_interrupt_catch with invalid old isr pointer"
|
||||||
|
);
|
||||||
|
puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
|
||||||
|
#endif
|
||||||
|
|
||||||
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
|
status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
|
||||||
fatal_directive_status(
|
fatal_directive_status(
|
||||||
|
|||||||
Reference in New Issue
Block a user