aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched/mcu/atmega2560/include/mcu/sched/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/mcu/atmega2560/include/mcu/sched/context.h')
-rw-r--r--kernel/sched/mcu/atmega2560/include/mcu/sched/context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/sched/mcu/atmega2560/include/mcu/sched/context.h b/kernel/sched/mcu/atmega2560/include/mcu/sched/context.h
index 9ff8d42..d3b324c 100644
--- a/kernel/sched/mcu/atmega2560/include/mcu/sched/context.h
+++ b/kernel/sched/mcu/atmega2560/include/mcu/sched/context.h
@@ -3,6 +3,12 @@
#include <avr/interrupt.h>
+/*
+ * The macros SAVE_CONTEXT(), RESTORE_CONTEXT() as well as the code contained in
+ * init_stack is adapted from the FreeRTOS kernel (http://www.freertos.org/).
+ * Here by copyright, credits attributed to wherever they belong.
+ */
+
#define SAVE_CONTEXT() \
asm volatile ( \
"push r0 \n\t" \