From c75f83fc74d427ec8d6be7024c4cdb35b1afffb5 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 24 Jan 2014 20:54:15 +0100 Subject: add reamde and license --- kernel/sched/mcu/atmega2560/include/mcu/sched/context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel') 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 +/* + * 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" \ -- cgit v1.2.3