[rtems commit] avr/rtems/score/cpu.h: Fix macros to avoid warnings
Joel Sherrill
joel at rtems.org
Thu Oct 9 15:03:39 UTC 2014
Module: rtems
Branch: master
Commit: 81074900dfbf08326d735bb37d78c2dc8e3e8d2b
Changeset: http://git.rtems.org/rtems/commit/?id=81074900dfbf08326d735bb37d78c2dc8e3e8d2b
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Wed Oct 8 15:09:39 2014 -0500
avr/rtems/score/cpu.h: Fix macros to avoid warnings
---
cpukit/score/cpu/avr/rtems/score/cpu.h | 11 +++++------
doc/tools/bmenu/address.inl | 31 -------------------------------
2 files changed, 5 insertions(+), 37 deletions(-)
diff --git a/cpukit/score/cpu/avr/rtems/score/cpu.h b/cpukit/score/cpu/avr/rtems/score/cpu.h
index ba3bfb8..7a6e9d9 100644
--- a/cpukit/score/cpu/avr/rtems/score/cpu.h
+++ b/cpukit/score/cpu/avr/rtems/score/cpu.h
@@ -685,14 +685,13 @@ SCORE_EXTERN Context_Control_fp _CPU_Null_fp_context;
*
* AVR Specific Information:
*
- * XXX document implementation including references if appropriate
+ * TODO: As of 8 October 2014, this method is not implemented.
*/
-
-#define _CPU_ISR_Set_level( new_level ) \
- { \
- }
-
#ifndef ASM
+static inline void _CPU_ISR_Set_level( unsigned int new_level )
+{
+}
+
uint32_t _CPU_ISR_Get_level( void );
diff --git a/doc/tools/bmenu/address.inl b/doc/tools/bmenu/address.inl
deleted file mode 100644
index f47647f..0000000
--- a/doc/tools/bmenu/address.inl
+++ /dev/null
@@ -1,31 +0,0 @@
-/* inline/address.inl
- *
- * This include file contains the bodies of the routines
- * about addresses which are inlined.
- *
- * COPYRIGHT (c) 1988-2002.
- * On-Line Applications Research Corporation (OAR).
- * All rights reserved.
- */
-
-#ifndef __INLINE_ADDRESSES_inl
-#define __INLINE_ADDRESSES_inl
-
-#include <stddef.h>
-
-/*PAGE
- *
- * _Addresses_Add_offset
- *
- */
-
-STATIC INLINE void *_Addresses_Add_offset (
- void *base,
- size_t offset
-)
-{
- return (base + offset);
-}
-
-#endif
-/* end of include file */
More information about the vc
mailing list