/** * @ingroup hal * @file * * Copyright: 2013 Paolo Mantegazza. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139, * USA; either version 2 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _RTAI_ASM_X86_SCHED_H #define _RTAI_ASM_X86_SCHED_H #ifdef __i386__ #include "rtai_sched_32.h" #else #include "rtai_sched_64.h" #endif #define init_arch_stack() \ do { \ *--(task->stack) = data; \ *--(task->stack) = (unsigned long) rt_thread; \ *--(task->stack) = 0; \ *--(task->stack) = (unsigned long) rt_startup; \ } while(0) #define DEFINE_LINUX_CR0 static unsigned long linux_cr0; #define DEFINE_LINUX_SMP_CR0 static unsigned long linux_smp_cr0[NR_RT_CPUS]; #define init_task_fpenv(task) do { init_fpenv((task)->fpu_reg); } while(0) #define RT_SET_RTAI_TRAP_HANDLER(x) rt_set_rtai_trap_handler(x) #define DO_TIMER_PROPER_OP() #endif /* !_RTAI_ASM_X86_SCHED_H */