From 4b61f6e58019a811c26a329e316ad046655ca07a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 15 Feb 2005 06:13:10 +0000 Subject: 2005-02-15 Ralf Corsepius * rtems/old-exceptions/cpu.h: Add _CPU_MSG_GET (old/new exception processing ABI compatibility). * rtems/powerpc/registers.h: Use C99 fixed size types. --- cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h') 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))); } -- cgit v1.2.3