summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 06:13:10 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 06:13:10 +0000
commit4b61f6e58019a811c26a329e316ad046655ca07a (patch)
treeb2321c0606032b4d73bb43f26631d0e05ea19859 /cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
parent2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4b61f6e58019a811c26a329e316ad046655ca07a.tar.bz2
2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/old-exceptions/cpu.h: Add _CPU_MSG_GET (old/new exception processing ABI compatibility). * rtems/powerpc/registers.h: Use C99 fixed size types.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
index fbc303ab23..3657f3e4f7 100644
--- a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
@@ -685,12 +685,18 @@ void _CPU_Initialize_vectors(void);
#ifndef ASM
extern const unsigned int _PPC_MSR_DISABLE_MASK;
-#define _CPU_MSR_Value( _msr_value ) \
+#define _CPU_MSR_GET( _msr_value ) \
do { \
_msr_value = 0; \
asm volatile ("mfmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); \
} while (0)
+/* FIXME: Backward compatibility
+ * new-exception-processing uses _CPU_MSR_GET
+ * old-exception-processing had used _CPU_MSR_Value
+ */
+#define _CPU_MSR_Value(_msr_value) _CPU_MSR_GET(_msr_value)
+
#define _CPU_MSR_SET( _msr_value ) \
{ asm volatile ("mtmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); }