BREAKPOINT: move from cpu/irq.h to cpu/attr.h
[bertos.git] / bertos / cpu / irq.h
index f47d708297868e019082898e3d77f4f5df491399..22d11e1fbedb1ae23514f4ffde30a6c6804b0fc3 100644 (file)
@@ -60,9 +60,6 @@
                #define IRQ_RESTORE(x)          FIXME
        #endif /* OS_EMBEDDED */
 
-       #ifdef __GNUC__
-               #define BREAKPOINT  asm volatile ("int 3" ::)
-       #endif
 
 #elif CPU_ARM
 
@@ -96,8 +93,6 @@
                #define IRQ_ENABLED() \
                        ((bool)(get_CPSR() & 0xb0))
 
-               #define BREAKPOINT  /* asm("bkpt 0") DOES NOT WORK */
-
        #else /* !__IAR_SYSTEMS_ICC__ */
 
                #define IRQ_DISABLE \
                #define IRQ_ENABLED()       FIXME
        #endif /* OS_EMBEDDED */
 
-       #ifdef __GNUC__
-               #define BREAKPOINT  asm volatile ("twge 2,2" ::)
-       #endif
-
 #elif CPU_DSP56K
 
-       #define BREAKPOINT              asm(debug)
        #define IRQ_DISABLE             do { asm(bfset #0x0200,SR); asm(nop); } while (0)
        #define IRQ_ENABLE              do { asm(bfclr #0x0200,SR); asm(nop); } while (0)
 
        } while (0)
 
 
-#ifndef BREAKPOINT
-#define BREAKPOINT /* nop */
-#endif
-
 
 #endif /* CPU_IRQ_H */