diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-09-18 08:07:23 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2009-09-18 08:07:23 +0000 |
commit | 5e61c80327325e9086b56235a46452d79968c58c (patch) | |
tree | 0b002d565eced9e2b905cb0af897111c0cbc18b4 /cpukit/score/cpu/arm/rtems/score/cpu.h | |
parent | Removed symbols and renamed sections. (diff) | |
download | rtems-5e61c80327325e9086b56235a46452d79968c58c.tar.bz2 |
* rtems/score/cpu.h: Fix for inline asm in _CPU_Fatal_halt().
* rtems/asm.h: Added macro to define ARM functions.
* cpu_asm.S, arm_exc_handler_low.S: Use macro from above.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/arm/rtems/score/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h index 084b41a603..d7eca1527c 100644 --- a/cpukit/score/cpu/arm/rtems/score/cpu.h +++ b/cpukit/score/cpu/arm/rtems/score/cpu.h @@ -336,9 +336,10 @@ void _CPU_Context_Initialize( *(*(_destination)) = _CPU_Null_fp_context; \ } while (0) -#define _CPU_Fatal_halt( _error ) \ +#define _CPU_Fatal_halt( _err ) \ do { \ - int _level; \ + uint32_t _level; \ + uint32_t _error = _err; \ _CPU_ISR_Disable( _level ); \ asm volatile ("mov r0, %0\n" \ : "=r" (_error) \ |