[PATCH v2 2/2] libbsp/arm: Fix the local interrupt mask disable/enable calls.

Chris Johns chrisj at rtems.org
Tue Aug 16 05:45:19 UTC 2016


---
 c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c b/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
index f650009..cfad45f 100644
--- a/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
+++ b/c/src/lib/libbsp/arm/shared/arm-cp15-set-ttb-entries.c
@@ -88,10 +88,10 @@ uint32_t arm_cp15_set_translation_table_entries(
   rtems_interrupt_level level;
   uint32_t section_flags_of_first_entry;
 
-  rtems_interrupt_disable(level);
+  rtems_interrupt_local_disable(level);
   section_flags_of_first_entry =
     set_translation_table_entries(begin, end, section_flags);
-  rtems_interrupt_enable(level);
+  rtems_interrupt_local_enable(level);
 
   return section_flags_of_first_entry;
 }
-- 
2.4.6




More information about the devel mailing list