aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chinit.c2
-rw-r--r--src/templates/chcore.h5
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.