[rtems commit] bfin: ASM compatibility for <rtems/score/cpu.h>

Sebastian Huber sebh at rtems.org
Mon Nov 21 09:07:35 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 21 10:06:36 2016 +0100

bfin: ASM compatibility for <rtems/score/cpu.h>

Close #2817.

---

 cpukit/score/cpu/bfin/rtems/score/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h
index 85dbf78..3be10a6 100644
--- a/cpukit/score/cpu/bfin/rtems/score/cpu.h
+++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h
@@ -601,6 +601,8 @@ typedef struct {
  */
 #define CPU_STACK_ALIGNMENT        8
 
+#ifndef ASM
+
 /*
  *  ISR handler macros
  */
@@ -692,8 +694,6 @@ RTEMS_INLINE_ROUTINE bool _CPU_ISR_Is_enabled( uint32_t level )
     __asm__ __volatile__ ( "sti %0; csync" : : "d"(_new_level ? 0 : 0xffff) ); \
   }
 
-#ifndef ASM
-
 /**
  * Return the current interrupt disable level for this task in
  * the format used by the interrupt level portion of the task mode.




More information about the vc mailing list