From: bernie Date: Fri, 22 Aug 2008 18:38:15 +0000 (+0000) Subject: BREAKPOINT: implement for x86 and ppc X-Git-Tag: 2.0.0~260 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=553d3b753ffdf718b585018b4b6730f32c98f9a1;p=bertos.git BREAKPOINT: implement for x86 and ppc git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1674 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 3a84dcb3..f47d7082 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -60,6 +60,10 @@ #define IRQ_RESTORE(x) FIXME #endif /* OS_EMBEDDED */ + #ifdef __GNUC__ + #define BREAKPOINT asm volatile ("int 3" ::) + #endif + #elif CPU_ARM #ifdef __IAR_SYSTEMS_ICC__ @@ -164,6 +168,10 @@ #define IRQ_ENABLED() FIXME #endif /* OS_EMBEDDED */ + #ifdef __GNUC__ + #define BREAKPOINT asm volatile ("twge 2,2" ::) + #endif + #elif CPU_DSP56K #define BREAKPOINT asm(debug)