aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/sys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/sys.h')
-rw-r--r--src/include/sys.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/sys.h b/src/include/sys.h
index 6c905fe63..7cc94ce82 100644
--- a/src/include/sys.h
+++ b/src/include/sys.h
@@ -86,7 +86,7 @@
* syscall from an interrupt handler.
* @note This API must be invoked exclusively from interrupt handlers.
*/
-#define chSysUnlockI() sys_disable_from_isr()
+#define chSysUnlockI() sys_enable_from_isr()
#if defined(CH_USE_NESTED_LOCKS) || defined(_DOXYGEN_)
/**
@@ -133,7 +133,7 @@
* @note Usually IRQ handlers functions are also declared naked.
* @note On some architectures this macro can be empty.
*/
-#define chSysIRQEnterI() sys_irq_prologue()
+#define chSysIRQEnterI() SYS_IRQ_PROLOGUE()
/**
* IRQ handler exit code.
@@ -141,7 +141,7 @@
* @note This macro usually performs the final reschedulation by using
* \p chSchRescRequiredI() and \p chSchDoRescheduleI().
*/
-#define chSysIRQExitI() sys_irq_epilogue()
+#define chSysIRQExitI() SYS_IRQ_EPILOGUE()
/**
* Standard modifier for IRQ handler functions.