From ce006bda5a48116c5a6a9b3bf6cd6c3e60f4a5fc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 11 Jan 2009 10:28:46 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@617 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7/chcore.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/ARM7/chcore.h b/ports/ARM7/chcore.h index a446fdb7e..ed994ac10 100644 --- a/ports/ARM7/chcore.h +++ b/ports/ARM7/chcore.h @@ -142,7 +142,11 @@ typedef struct { * IRQ prologue code, inserted at the start of all IRQ handlers enabled to * invoke system APIs. * @note This macro has a different implementation depending if compiled in - * ARM or THUMB mode. + * ARM or THUMB mode. + * @note The THUMB implementation starts with ARM code because interrupt + * vectors are always invoked in ARM mode regardless the bit 0 + * value. The switch in THUMB mode is done in the function prologue so + * it is transparent to the user code. */ #ifdef THUMB #define SYS_IRQ_PROLOGUE() { \ -- cgit v1.2.3