diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/chmtx.c | 12 | ||||
-rw-r--r-- | src/templates/chcore.h | 15 |
2 files changed, 21 insertions, 6 deletions
diff --git a/src/chmtx.c b/src/chmtx.c index 1c0055acd..c097f2f33 100644 --- a/src/chmtx.c +++ b/src/chmtx.c @@ -56,15 +56,15 @@ static void prio_enq(Thread *tp, ThreadsQueue *tqp) { }
/*
- * 0 +++BA++------------------2+++--8++++++++++BR0----------------------------
- * 1 .......++AA++--2+++++++++BA....8..........++++++++BR8++++AR1-------------
- * 2 .............++AA..............................................----++AR++
- * 8 .............................++AA........................++++++AR++......
+ * 0 +++BL++------------------2+++--8++++++++++BU0----------------------------
+ * 1 .......++AL++--2+++++++++BL....8..........++++++++BU8++++AU1-------------
+ * 2 .............++AL..............................................----++AU++
+ * 8 .............................++AL........................++++++AU++......
*
*
- * 5 ++++++++++++++++++AA+....9++++++++++++++AR5------------------------------
+ * 5 ++++++++++++++++++AL+....9++++++++++++++AU5------------------------------
* 7 .....................++--------------------------------------------------
- * 9 .......................++AA.............+++++++++AR++++++++++++++++++++++
+ * 9 .......................++AL.............+++++++++AU++++++++++++++++++++++
*/
/**
diff --git a/src/templates/chcore.h b/src/templates/chcore.h index c88748f8b..3f796e8ab 100644 --- a/src/templates/chcore.h +++ b/src/templates/chcore.h @@ -100,6 +100,21 @@ typedef struct { */
#define chSysUnlock()
+/**
+ * IRQ handler enter code.
+ * @note Usually IRQ handlers function are also declared naked.
+ * @note On some architectures this macro can be empty.
+ */
+#define chSysIRQEnterI()
+
+/**
+ * IRQ handler exit code.
+ * @note Usually IRQ handlers function are also declared naked.
+ * @note This macro must perform the final reschedulation by using
+ * \p chSchRescRequiredI() and \p chSchDoRescheduleI().
+ */
+#define chSysIRQExitI()
+
void _IdleThread(void *p);
void chSysHalt(void);
void chSysSwitchI(Context *oldp, Context *newp);
|