summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h')
-rw-r--r--c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h b/c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h
index bf2769a363..77de711862 100644
--- a/c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h
+++ b/c/src/exec/score/cpu/powerpc/rtems/old-exceptions/cpu.h
@@ -33,16 +33,17 @@
#ifndef __CPU_h
#define __CPU_h
+#ifndef _rtems_score_cpu_h
+#error "You should include <rtems/score/cpu.h>"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
-#include <rtems/score/ppc.h> /* pick up machine definitions */
#ifndef ASM
struct CPU_Interrupt_frame;
typedef void ( *ppc_isr_entry )( int, struct CPU_Interrupt_frame * );
-
-#include <rtems/score/types.h>
#endif
/* conditional compilation parameters */
@@ -723,8 +724,6 @@ void _CPU_Initialize_vectors(void);
* level is returned in _isr_cookie.
*/
-#define loc_string(a,b) a " (" #b ")\n"
-
#define _CPU_MSR_Value( _msr_value ) \
do { \
_msr_value = 0; \