diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-27 10:51:12 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-27 10:51:12 +0000 |
commit | 8bd26f16956f7763d79c421e535d56f2cd7edc6e (patch) | |
tree | 697754a14ecf7d548c6f3b9912553639e6727a4d /cpukit | |
parent | 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-8bd26f16956f7763d79c421e535d56f2cd7edc6e.tar.bz2 |
2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/asm.h: Fixed header guard.
* rtems/score/cpu.h: Assembler compatibility fixes.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/cpu/avr/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/cpu/avr/rtems/asm.h | 11 | ||||
-rw-r--r-- | cpukit/score/cpu/avr/rtems/score/cpu.h | 8 |
3 files changed, 14 insertions, 10 deletions
diff --git a/cpukit/score/cpu/avr/ChangeLog b/cpukit/score/cpu/avr/ChangeLog index 950790c25a..af27e41e6d 100644 --- a/cpukit/score/cpu/avr/ChangeLog +++ b/cpukit/score/cpu/avr/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * rtems/asm.h: Fixed header guard. + * rtems/score/cpu.h: Assembler compatibility fixes. + 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de> * rtems/score/cpu.h: Include <rtems/score/types.h> first. diff --git a/cpukit/score/cpu/avr/rtems/asm.h b/cpukit/score/cpu/avr/rtems/asm.h index 3f5c49954b..80f2197e4a 100644 --- a/cpukit/score/cpu/avr/rtems/asm.h +++ b/cpukit/score/cpu/avr/rtems/asm.h @@ -95,15 +95,6 @@ #define PUBLIC(sym) .globl SYM (sym) #define EXTERN(sym) .globl SYM (sym) - - - - - - -#endif - - /* Copyright (c) 2002, 2005, 2006, 2007 Marek Michalkiewicz Copyright (c) 2006 Dmitry Xmelkov All rights reserved. @@ -469,4 +460,4 @@ #endif .endm - +#endif /* _RTEMS_ASM_H */ diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h index d26469bf84..ce20506851 100644 --- a/cpukit/score/cpu/avr/rtems/score/cpu.h +++ b/cpukit/score/cpu/avr/rtems/score/cpu.h @@ -382,6 +382,8 @@ extern "C" { /* may need to put some structures here. */ +#ifndef ASM + /* * Contexts * @@ -453,6 +455,8 @@ typedef struct { SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; +#endif /* ASM */ + /* * Nothing prevents the porter from declaring more CPU specific variables. * @@ -678,6 +682,8 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context; { \ } +#ifndef ASM + uint32_t _CPU_ISR_Get_level( void ); /* end of ISR handler macros */ @@ -1147,6 +1153,8 @@ static inline uint32_t CPU_swap_u32( #define CPU_swap_u16( value ) \ (((value&0xff) << 8) | ((value >> 8)&0xff)) +#endif /* ASM */ + #ifdef __cplusplus } #endif |