Ignore:
Timestamp:
Sep 12, 2007, 3:15:32 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bd51a63
Parents:
38feb6d5
Message:

2007-09-12 Joel Sherrill <joel.sherrill@…>

PR 1257/bsps

  • csb336/network/lan91c11x.c, csb337/startup/bspstart.c, edb7312/irq/irq.c, gba/irq/irq.c, gba/irq/irq_init.c, gp32/startup/bspstart.c, rtl22xx/startup/bspstart.c, shared/abort/abort.c, shared/abort/simple_abort.c, shared/irq/irq_init.c: Code outside of cpukit should use the public API for rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the public API and directly accessing _CPU_ISR_Disable and _CPU_ISR_Enable, they were bypassing the compiler memory barrier directive which could lead to problems. This patch also changes the type of the variable passed into these routines and addresses minor style issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/edb7312/irq/irq.c

    r38feb6d5 rf3343c6e  
    5252    }
    5353
    54     _CPU_ISR_Disable(level);
     54    rtems_interrupt_disable(level);
    5555
    5656    /*
     
    9191    }
    9292
    93     _CPU_ISR_Enable(level);
     93    rtems_interrupt_enable(level);
    9494
    9595    return 1;
     
    111111      return 0;
    112112    }
    113     _CPU_ISR_Disable(level);
     113    rtems_interrupt_disable(level);
    114114
    115115    /*
     
    148148    *(HdlTable + irq->name) = default_int_handler;
    149149
    150     _CPU_ISR_Enable(level);
     150    rtems_interrupt_enable(level);
    151151
    152152    return 1;
Note: See TracChangeset for help on using the changeset viewer.