mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 12:34:47 +00:00
Use the default trap handler in Patmos
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -461,7 +461,3 @@ void _CPU_Context_restore(
|
|||||||
"i" (r2_OFFSET), "i" (r3_OFFSET));
|
"i" (r2_OFFSET), "i" (r3_OFFSET));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void abort_trap()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user