Changeset 2e8c4ad in rtems


Ignore:
Timestamp:
Jan 18, 2016, 8:07:55 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
bb291a4
Parents:
76ac1ee3
git-author:
Sebastian Huber <sebastian.huber@…> (01/18/16 08:07:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/19/16 07:36:18)
Message:

sptests/sp37: Fix interrupt level usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp37/init.c

    r76ac1ee3 r2e8c4ad  
    439439{
    440440#if !defined(RTEMS_SMP)
    441   rtems_interrupt_level level;
     441  rtems_interrupt_level level_0;
     442  rtems_interrupt_level level_1;
    442443  rtems_mode            level_mode_body;
    443444  rtems_mode            level_mode_macro;
     
    445446
    446447  puts( "interrupt disable (use body)" );
    447   level = rtems_interrupt_disable();
     448  level_0 = rtems_interrupt_disable();
    448449
    449450  puts( "interrupt disable (use body)" );
    450   level = rtems_interrupt_disable();
     451  level_1 = rtems_interrupt_disable();
    451452
    452453  puts( "interrupt flash (use body)" );
    453   rtems_interrupt_flash( level );
     454  rtems_interrupt_flash( level_1 );
    454455
    455456  puts( "interrupt enable (use body)" );
    456   rtems_interrupt_enable( level );
     457  rtems_interrupt_enable( level_1 );
    457458
    458459  puts( "interrupt level mode (use body)" );
    459   level_mode_body = rtems_interrupt_level_body( level );
    460   level_mode_macro = RTEMS_INTERRUPT_LEVEL(level);
     460  level_mode_body = rtems_interrupt_level_body( level_0 );
     461  level_mode_macro = RTEMS_INTERRUPT_LEVEL( level_0 );
    461462  if ( level_mode_macro == level_mode_body ) {
    462463    puts("test seems to work");
     
    470471
    471472  puts( "interrupt enable (use body)" );
    472   rtems_interrupt_enable( level );
     473  rtems_interrupt_enable( level_0 );
    473474
    474475  if ( in_isr ) {
Note: See TracChangeset for help on using the changeset viewer.