Changeset be62c0b0 in rtems


Ignore:
Timestamp:
Jul 4, 2016, 6:34:39 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
197d034
Parents:
28eeb6a
git-author:
Sebastian Huber <sebastian.huber@…> (07/04/16 18:34:39)
git-committer:
Pavel Pisa <pisa@…> (10/02/16 08:40:34)
Message:

bsps/arm: Fix basic cache support for SMP

Updates #2782
Updates #2783

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/armv467ar-basic-cache/cache_.h

    r28eeb6a rbe62c0b0  
    135135  uint32_t ctrl;
    136136
    137   rtems_interrupt_disable(level);
     137  rtems_interrupt_local_disable(level);
    138138  ctrl = arm_cp15_get_control();
    139139  ctrl |= ARM_CP15_CTRL_C;
    140140  arm_cp15_set_control(ctrl);
    141   rtems_interrupt_enable(level);
     141  rtems_interrupt_local_enable(level);
    142142}
    143143
     
    147147  uint32_t ctrl;
    148148
    149   rtems_interrupt_disable(level);
     149  rtems_interrupt_local_disable(level);
    150150  arm_cp15_data_cache_test_and_clean_and_invalidate();
    151151  ctrl = arm_cp15_get_control();
    152152  ctrl &= ~ARM_CP15_CTRL_C;
    153153  arm_cp15_set_control(ctrl);
    154   rtems_interrupt_enable(level);
     154  rtems_interrupt_local_enable(level);
    155155}
    156156
     
    166166  uint32_t ctrl;
    167167
    168   rtems_interrupt_disable(level);
     168  rtems_interrupt_local_disable(level);
    169169  ctrl = arm_cp15_get_control();
    170170  ctrl |= ARM_CP15_CTRL_I;
    171171  arm_cp15_set_control(ctrl);
    172   rtems_interrupt_enable(level);
     172  rtems_interrupt_local_enable(level);
    173173}
    174174
     
    178178  uint32_t ctrl;
    179179
    180   rtems_interrupt_disable(level);
     180  rtems_interrupt_local_disable(level);
    181181  ctrl = arm_cp15_get_control();
    182182  ctrl &= ~ARM_CP15_CTRL_I;
    183183  arm_cp15_set_control(ctrl);
    184   rtems_interrupt_enable(level);
     184  rtems_interrupt_local_enable(level);
    185185}
    186186
Note: See TracChangeset for help on using the changeset viewer.