Ignore:
Timestamp:
Jul 4, 2016, 6:34:39 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
116370c6
Parents:
5e3096db
git-author:
Sebastian Huber <sebastian.huber@…> (07/04/16 18:34:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/05/16 06:02:24)
Message:

bsps/arm: Fix basic cache support for SMP

File:
1 edited

Legend:

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

    r5e3096db rc305847  
    120120  uint32_t ctrl;
    121121
    122   rtems_interrupt_disable(level);
     122  rtems_interrupt_local_disable(level);
    123123  ctrl = arm_cp15_get_control();
    124124  ctrl |= ARM_CP15_CTRL_C;
    125125  arm_cp15_set_control(ctrl);
    126   rtems_interrupt_enable(level);
     126  rtems_interrupt_local_enable(level);
    127127}
    128128
     
    132132  uint32_t ctrl;
    133133
    134   rtems_interrupt_disable(level);
     134  rtems_interrupt_local_disable(level);
    135135  arm_cp15_data_cache_test_and_clean_and_invalidate();
    136136  ctrl = arm_cp15_get_control();
    137137  ctrl &= ~ARM_CP15_CTRL_C;
    138138  arm_cp15_set_control(ctrl);
    139   rtems_interrupt_enable(level);
     139  rtems_interrupt_local_enable(level);
    140140}
    141141
     
    150150  uint32_t ctrl;
    151151
    152   rtems_interrupt_disable(level);
     152  rtems_interrupt_local_disable(level);
    153153  ctrl = arm_cp15_get_control();
    154154  ctrl |= ARM_CP15_CTRL_I;
    155155  arm_cp15_set_control(ctrl);
    156   rtems_interrupt_enable(level);
     156  rtems_interrupt_local_enable(level);
    157157}
    158158
     
    162162  uint32_t ctrl;
    163163
    164   rtems_interrupt_disable(level);
     164  rtems_interrupt_local_disable(level);
    165165  ctrl = arm_cp15_get_control();
    166166  ctrl &= ~ARM_CP15_CTRL_I;
    167167  arm_cp15_set_control(ctrl);
    168   rtems_interrupt_enable(level);
     168  rtems_interrupt_local_enable(level);
    169169}
    170170
Note: See TracChangeset for help on using the changeset viewer.