diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-15 06:13:10 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-15 06:13:10 +0000 |
commit | 4b61f6e58019a811c26a329e316ad046655ca07a (patch) | |
tree | b2321c0606032b4d73bb43f26631d0e05ea19859 /cpukit/score/cpu/powerpc/rtems/old-exceptions | |
parent | 2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h | 8 |
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))); } |