On 10/06/2014 01:01 PM, Sebastian Huber wrote:
On 06/10/14 11:56, Daniel Hellstrom wrote:
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h
b/cpukit/score/cpu/sparc/rtems/score/cpu.h
index 70d1785..65966b7 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h
@@ -1075,19 +1075,15 @@ void _CPU_Context_Initialize(
/* Fatal Error manager macros */
+extern void _BSP_Fatal_halt(uint32_t source, uint32_t error)
+ RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+
/**
* This routine copies _error into a known place -- typically a stack
* location or a register, optionally disables interrupts, and
* halts/stops the CPU.
*/
-#define _CPU_Fatal_halt( _source, _error ) \
- do { \
- uint32_t level; \
- \
- level = sparc_disable_interrupts(); \
- __asm__ volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) ); \
- while (1); /* loop forever */ \
- } while (0)
+#define _CPU_Fatal_halt( _source, _error ) _BSP_Fatal_halt( _source, _error )
I removed the other _BSP_* functions in the cpu.h files recently, so please use
_CPU_Fatal_halt() only.
Ok. I will update the patch. Sorry for not getting back to this topic until now.
DanielH
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel