Changeset ffb9eeb in rtems


Ignore:
Timestamp:
Jul 17, 2008, 9:22:29 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
05480bb
Parents:
00a2d366
Message:

2008-07-17 Joel Sherrill <joel.sherrill@…>

  • sp09/screen09.c: Do not use Simple Vectored Interrupt calls on architectures they are not supported on.
Location:
testsuites/sptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r00a2d366 rffb9eeb  
     12008-07-17      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * sp09/screen09.c: Do not use Simple Vectored Interrupt calls on
     4        architectures they are not supported on.
     5
    162008-07-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/sptests/sp09/screen09.c

    r00a2d366 rffb9eeb  
    2525  rtems_isr_entry   old_service_routine;
    2626
    27   status = rtems_interrupt_catch(
    28     Service_routine,
    29     ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
    30     &old_service_routine
    31   );
    32   fatal_directive_status(
    33     status,
    34     RTEMS_INVALID_NUMBER,
    35     "rtems_interrupt_catch with invalid vector"
    36   );
    37   puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
    38 
    39 #if defined(_C3x) || defined(_C4x)
    40   puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS -- SKIPPED" );
     27#if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
     28  puts( "TRUE" );
    4129#else
    42   status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
    43   fatal_directive_status(
    44     status,
    45     RTEMS_INVALID_ADDRESS,
    46     "rtems_interrupt_catch with invalid handler"
    47   );
    48   puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
     30  puts( "FALSE" );
    4931#endif
    5032
    51 #if defined(_C3x) || defined(_C4x)
    52   puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
    53 #else
    54   status = rtems_interrupt_catch( Service_routine, 3, NULL );
    55   fatal_directive_status(
    56     status,
    57     RTEMS_INVALID_ADDRESS,
    58     "rtems_interrupt_catch with invalid old isr pointer"
    59   );
    60   puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
    61 #endif
     33  #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
     34       defined(_C3x) || defined(_C4x))
     35    puts(
     36      "TA1 - rtems_interrupt_catch - "
     37      "bad handler RTEMS_INVALID_ADDRESS -- SKIPPED"
     38    );
     39    puts(
     40      "TA1 - rtems_interrupt_catch - "
     41      "old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
     42  #else
     43    status = rtems_interrupt_catch(
     44      Service_routine,
     45      ISR_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 10,
     46      &old_service_routine
     47    );
     48    fatal_directive_status(
     49      status,
     50      RTEMS_INVALID_NUMBER,
     51      "rtems_interrupt_catch with invalid vector"
     52    );
     53    puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
     54
     55    status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
     56    fatal_directive_status(
     57      status,
     58      RTEMS_INVALID_ADDRESS,
     59      "rtems_interrupt_catch with invalid handler"
     60    );
     61    puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
     62
     63    status = rtems_interrupt_catch( Service_routine, 3, NULL );
     64    fatal_directive_status(
     65      status,
     66      RTEMS_INVALID_ADDRESS,
     67      "rtems_interrupt_catch with invalid old isr pointer"
     68    );
     69    puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
     70  #endif
    6271
    6372  status = rtems_signal_send( 100, RTEMS_SIGNAL_1 );
Note: See TracChangeset for help on using the changeset viewer.