aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/scheduler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/scheduler.h b/src/include/scheduler.h
index 612ee8c55..9b16dccc9 100644
--- a/src/include/scheduler.h
+++ b/src/include/scheduler.h
@@ -64,7 +64,7 @@ typedef struct {
#if CH_USE_ROUNDROBIN
cnt_t r_preempt; /**< Round robin counter.*/
#endif
-#if !CH_CURRP_REGISTER_CACHE
+#ifndef CH_CURRP_REGISTER_CACHE
Thread *r_current; /**< The currently running thread.*/
#endif
} ReadyList;
@@ -89,7 +89,7 @@ extern "C" {
}
#endif
-#if CH_CURRP_REGISTER_CACHE
+#ifdef CH_CURRP_REGISTER_CACHE
register Thread *currp asm(CH_CURRP_REGISTER_CACHE);
#else
#define currp rlist.r_current