From 4ac56fbbd17d0deae2181ea9c32372a22e663a57 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 27 Jul 2010 11:03:38 +0000 Subject: 2010-07-27 Sebastian Huber * rtems/score/cpu.h: Assembler compatibility fixes. --- cpukit/score/cpu/h8300/rtems/score/cpu.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'cpukit/score/cpu/h8300/rtems/score') diff --git a/cpukit/score/cpu/h8300/rtems/score/cpu.h b/cpukit/score/cpu/h8300/rtems/score/cpu.h index 679058aeb2..75a73587d2 100644 --- a/cpukit/score/cpu/h8300/rtems/score/cpu.h +++ b/cpukit/score/cpu/h8300/rtems/score/cpu.h @@ -25,8 +25,9 @@ extern "C" { #include #include - -#include /* printk */ +#ifndef ASM + #include +#endif /* conditional compilation parameters */ @@ -388,7 +389,7 @@ extern "C" { * XXX */ - +#ifndef ASM #define nogap __attribute__ ((packed)) @@ -452,6 +453,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 * system initialization thread. Remember that in a multiprocessor @@ -701,6 +704,8 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; else asm volatile ( "andc #0x7f,ccr\n" ); \ } +#ifndef ASM + uint32_t _CPU_ISR_Get_level( void ); /* end of ISR handler macros */ @@ -1132,6 +1137,8 @@ extern void H8BD_Install_IRQ( proc_ptr new_handler, proc_ptr *old_handler ); +#endif /* ASM */ + #ifdef __cplusplus } #endif -- cgit v1.2.3