BREAKPOINT: implement for x86 and ppc
[bertos.git] / bertos / cpu / irq.h
index 3a84dcb33b225c8ea5fc80d3b417d446647bbebb..f47d708297868e019082898e3d77f4f5df491399 100644 (file)
                #define IRQ_RESTORE(x)          FIXME
        #endif /* OS_EMBEDDED */
 
+       #ifdef __GNUC__
+               #define BREAKPOINT  asm volatile ("int 3" ::)
+       #endif
+
 #elif CPU_ARM
 
        #ifdef __IAR_SYSTEMS_ICC__
                #define IRQ_ENABLED()       FIXME
        #endif /* OS_EMBEDDED */
 
+       #ifdef __GNUC__
+               #define BREAKPOINT  asm volatile ("twge 2,2" ::)
+       #endif
+
 #elif CPU_DSP56K
 
        #define BREAKPOINT              asm(debug)