[rtems commit] arm: Implement _CPU_ISR_Get_level() for ARMv7-M

Sebastian Huber sebh at rtems.org
Mon Jun 15 19:10:00 UTC 2015


Module:    rtems
Branch:    master
Commit:    9d8389021c63bc21099534b8d3581a7490124793
Changeset: http://git.rtems.org/rtems/commit/?id=9d8389021c63bc21099534b8d3581a7490124793

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun 15 20:45:56 2015 +0200

arm: Implement _CPU_ISR_Get_level() for ARMv7-M

---

 cpukit/score/cpu/arm/armv7m-isr-level-get.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/score/cpu/arm/armv7m-isr-level-get.c b/cpukit/score/cpu/arm/armv7m-isr-level-get.c
index 067c55d..780ff16 100644
--- a/cpukit/score/cpu/arm/armv7m-isr-level-get.c
+++ b/cpukit/score/cpu/arm/armv7m-isr-level-get.c
@@ -5,10 +5,10 @@
  */
 
 /*
- * Copyright (c) 2011 Sebastian Huber.  All rights reserved.
+ * Copyright (c) 2011-2015 Sebastian Huber.  All rights reserved.
  *
  *  embedded brains GmbH
- *  Obere Lagerstr. 30
+ *  Dornierstr. 4
  *  82178 Puchheim
  *  Germany
  *  <rtems at embedded-brains.de>
@@ -28,7 +28,7 @@
 
 uint32_t _CPU_ISR_Get_level( void )
 {
-  return 0;
+  return _ARMV7M_Get_basepri() != 0;
 }
 
 #endif /* ARM_MULTILIB_ARCH_V7M */




More information about the vc mailing list