diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-08-25 13:00:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-08-25 13:00:11 +0000 |
commit | b689f00e31591e2f3b5b3607b15be428dfeb7e88 (patch) | |
tree | 20ee57099be6cfcead74274f9ca49551dc26341f /src | |
parent | 5d40605546682121c1220d8e676d4d9bc760b785 (diff) | |
download | ChibiOS-b689f00e31591e2f3b5b3607b15be428dfeb7e88.tar.gz ChibiOS-b689f00e31591e2f3b5b3607b15be428dfeb7e88.tar.bz2 ChibiOS-b689f00e31591e2f3b5b3607b15be428dfeb7e88.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@401 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/chinit.c | 2 | ||||
-rw-r--r-- | src/templates/chcore.h | 5 |
2 files changed, 6 insertions, 1 deletions
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 @@ -106,6 +106,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.
* @note On some architectures this macro can be empty.
|