BREAKPOINT: implement for x86 and ppc
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 22 Aug 2008 18:38:15 +0000 (18:38 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 22 Aug 2008 18:38:15 +0000 (18:38 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1674 38d2e660-2303-0410-9eaa-f027e97ec537

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)