From 553d3b753ffdf718b585018b4b6730f32c98f9a1 Mon Sep 17 00:00:00 2001 From: bernie Date: Fri, 22 Aug 2008 18:38:15 +0000 Subject: [PATCH] BREAKPOINT: implement for x86 and ppc git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1674 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/irq.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.25.1