Changeset 47d88b7 in rtems


Ignore:
Timestamp:
Sep 12, 2007, 3:16:16 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
dc7271f
Parents:
c83c325
Message:

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

PR 1257/bsps

  • startup/bspclean.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.
Location:
c/src/lib/libbsp/nios2/nios2_iss
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/nios2/nios2_iss/ChangeLog

    rc83c325 r47d88b7  
     12007-09-12      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        PR 1257/bsps
     4        * startup/bspclean.c: Code outside of cpukit should use the public API
     5        for rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the
     6        public API and directly accessing _CPU_ISR_Disable and
     7        _CPU_ISR_Enable, they were bypassing the compiler memory barrier
     8        directive which could lead to problems. This patch also changes the
     9        type of the variable passed into these routines and addresses minor
     10        style issues.
     11
    1122007-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    213
  • c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c

    rc83c325 r47d88b7  
    2626void bsp_cleanup( void )
    2727{
    28     int level;
    29     _CPU_ISR_Disable(level);
     28    rtems_interrupt_level level;
     29    rtems_interrupt_disable(level);
    3030    for(;;);
    3131}
Note: See TracChangeset for help on using the changeset viewer.