summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/bfin/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/bfin/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/bfin/rtems/score/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/score/cpu/bfin/rtems/score/cpu.h b/cpukit/score/cpu/bfin/rtems/score/cpu.h
index a6b73e1b57..d1b6b7f29b 100644
--- a/cpukit/score/cpu/bfin/rtems/score/cpu.h
+++ b/cpukit/score/cpu/bfin/rtems/score/cpu.h
@@ -458,6 +458,8 @@ extern "C" {
* XXX document implementation including references if appropriate
*/
+#ifndef ASM
+
/**
* @ingroup CPUContext Management
* This defines the minimal set of integer and processor state registers
@@ -565,6 +567,8 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
*/
#define CPU_CONTEXT_FP_SIZE sizeof( Context_Control_fp )
+#endif /* ASM */
+
/**
* Amount of extra stack (above minimum stack size) required by
* MPCI receive server thread. Remember that in a multiprocessor
@@ -766,6 +770,7 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
__asm__ __volatile__ ( "sti %0; csync" : : "d"(_new_level ? 0 : 0xffff) ); \
}
+#ifndef ASM
/**
* @ingroup CPUInterrupt
@@ -1250,6 +1255,8 @@ static inline uint32_t CPU_swap_u32(
#define CPU_swap_u16( value ) \
(((value&0xff) << 8) | ((value >> 8)&0xff))
+#endif /* ASM */
+
#ifdef __cplusplus
}
#endif