Changeset be4992b1 in rtems


Ignore:
Timestamp:
Sep 2, 2014, 11:00:44 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
3d05302
Parents:
5f9c208
git-author:
Joel Sherrill <joel.sherrill@…> (09/02/14 23:00:44)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/04/14 14:07:56)
Message:

raspberrypi: Use shared bspreset.c

Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/csb337/startup/bspreset.c

    r5f9c208 rbe4992b1  
    1818  rtems_interrupt_level level;
    1919
     20  (void) level;
    2021  rtems_interrupt_disable(level);
    2122
  • c/src/lib/libbsp/arm/raspberrypi/Makefile.am

    r5f9c208 rbe4992b1  
    9393
    9494# Startup
    95 libbsp_a_SOURCES += startup/bspreset.c
     95libbsp_a_SOURCES += ../../shared/bspreset_loop.c
    9696libbsp_a_SOURCES += startup/bspstart.c
    9797
  • testsuites/sptests/spintr_err01/init.c

    r5f9c208 rbe4992b1  
    2121)
    2222{
    23   rtems_status_code status;
    24 
    2523  TEST_BEGIN();
    26   #if ((CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE) || \
    27        defined(_C3x) || defined(_C4x))
     24  #if (CPU_SIMPLE_VECTORED_INTERRUPTS == FALSE)
    2825    puts(
    2926      "TA1 - rtems_interrupt_catch - "
     
    3330      "TA1 - rtems_interrupt_catch - "
    3431      "old isr RTEMS_INVALID_ADDRESS - SKIPPED" );
    35 #else
    36   rtems_isr_entry   old_service_routine;
    37     status = rtems_interrupt_catch(
    38       Service_routine,
    39       CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 1,
    40       &old_service_routine
    41     );
    42     fatal_directive_status(
    43       status,
    44       RTEMS_INVALID_NUMBER,
    45       "rtems_interrupt_catch with invalid vector"
    46     );
    47     puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
     32  #else
     33    rtems_status_code status;
    4834
    49     status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
    50     fatal_directive_status(
    51       status,
    52       RTEMS_INVALID_ADDRESS,
    53       "rtems_interrupt_catch with invalid handler"
    54     );
    55     puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
     35    rtems_isr_entry   old_service_routine;
     36      status = rtems_interrupt_catch(
     37        Service_routine,
     38        CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER + 1,
     39        &old_service_routine
     40      );
     41      fatal_directive_status(
     42        status,
     43        RTEMS_INVALID_NUMBER,
     44        "rtems_interrupt_catch with invalid vector"
     45      );
     46      puts( "TA1 - rtems_interrupt_catch - RTEMS_INVALID_NUMBER" );
    5647
    57     status = rtems_interrupt_catch( Service_routine, 3, NULL );
    58     fatal_directive_status(
    59       status,
    60       RTEMS_INVALID_ADDRESS,
    61       "rtems_interrupt_catch with invalid old isr pointer"
    62     );
    63     puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
    64 #endif
    65  
     48      status = rtems_interrupt_catch( NULL, 3, &old_service_routine );
     49      fatal_directive_status(
     50        status,
     51        RTEMS_INVALID_ADDRESS,
     52        "rtems_interrupt_catch with invalid handler"
     53      );
     54      puts( "TA1 - rtems_interrupt_catch - bad handler RTEMS_INVALID_ADDRESS" );
     55
     56      status = rtems_interrupt_catch( Service_routine, 3, NULL );
     57      fatal_directive_status(
     58        status,
     59        RTEMS_INVALID_ADDRESS,
     60        "rtems_interrupt_catch with invalid old isr pointer"
     61      );
     62      puts( "TA1 - rtems_interrupt_catch - old isr RTEMS_INVALID_ADDRESS" );
     63  #endif
     64
    6665  TEST_END();
    6766}
Note: See TracChangeset for help on using the changeset viewer.