Use the default trap handler in Patmos

This commit is contained in:
afpr
2014-05-15 16:50:44 +01:00
parent 51fc7769c5
commit 0701177c48
4 changed files with 2 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ RTEMS_CPU_MODEL=pasim
CPU_CFLAGS = -msoft-float CPU_CFLAGS = -msoft-float
# optimize flag: typically -O2 # optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -Xllc -trap-func=abort_trap CFLAGS_OPTIMIZE_V = -O2 -g
# debug flags: disable optimizations # debug flags: disable optimizations
# We need the optimized register allocator here, the fast register allocator at -O0 wants to introduce spill code in naked functions. # We need the optimized register allocator here, the fast register allocator at -O0 wants to introduce spill code in naked functions.

View File

@@ -14,7 +14,7 @@ RTEMS_CPU_MODEL=tcrest
CPU_CFLAGS = -msoft-float CPU_CFLAGS = -msoft-float
# optimize flag: typically -O2 # optimize flag: typically -O2
CFLAGS_OPTIMIZE_V = -O2 -g -Xllc -trap-func=abort_trap CFLAGS_OPTIMIZE_V = -O2 -g
# debug flags: disable optimizations # debug flags: disable optimizations
# We need the optimized register allocator here, the fast register allocator at -O0 wants to introduce spill code in naked functions. # We need the optimized register allocator here, the fast register allocator at -O0 wants to introduce spill code in naked functions.

View File

@@ -461,7 +461,3 @@ void _CPU_Context_restore(
"i" (r2_OFFSET), "i" (r3_OFFSET)); "i" (r2_OFFSET), "i" (r3_OFFSET));
} }
void abort_trap()
{
}

View File

@@ -778,14 +778,6 @@ static inline uint32_t CPU_swap_u32(
#define CPU_swap_u16( value ) \ #define CPU_swap_u16( value ) \
(((value&0xff) << 8) | ((value >> 8)&0xff)) (((value&0xff) << 8) | ((value >> 8)&0xff))
/*
* abort_trap
*
* This routine implements the abort function referenced by the linker.
*/
void abort_trap(void) __attribute__((used));
#endif /* ASM */ #endif /* ASM */
#ifdef __cplusplus #ifdef __cplusplus