From b689f00e31591e2f3b5b3607b15be428dfeb7e88 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 25 Aug 2008 13:00:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@401 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chinit.c | 2 +- src/templates/chcore.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/chinit.c b/src/chinit.c index 2aee810a0..243ef2a97 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -47,7 +47,7 @@ void chSysInit(void) { mainthread.p_state = PRCURR; currp = &mainthread; - chSysUnlock(); + chSysEnable(); /* * The idle thread is created using the port-provided implementation. diff --git a/src/templates/chcore.h b/src/templates/chcore.h index 491aa3fee..c84a237f8 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -105,6 +105,11 @@ typedef struct { */ #define chSysUnlock() +/** + * Enables the interrupts, it is only invoked once into \p chSysInit(). + */ +#define chSysEnable() + /** * IRQ handler enter code. * @note Usually IRQ handlers function are also declared naked. -- cgit v1.2.3