From 98749abfdfc28095eb45db8d594596c13645ed08 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 10 Jan 2008 15:04:57 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@175 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/ch.h | 2 ++ src/include/scheduler.h | 2 +- src/include/threads.h | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/ch.h b/src/include/ch.h index 2c2bb2f7c..dcb486626 100644 --- a/src/include/ch.h +++ b/src/include/ch.h @@ -27,6 +27,8 @@ #define _CHIBIOS_RT_ +struct Thread; + #ifndef __DOXIGEN__ #ifndef _CHCONF_H_ #include diff --git a/src/include/scheduler.h b/src/include/scheduler.h index 183e3af79..67fae50a4 100644 --- a/src/include/scheduler.h +++ b/src/include/scheduler.h @@ -61,8 +61,8 @@ extern "C" { void chSchReadyI(Thread *tp, t_msg msg); void chSchGoSleepS(t_tstate newstate); void chSchWakeupS(Thread *tp, t_msg msg); - void chSchRescheduleS(void); void chSchDoRescheduleI(void); + void chSchRescheduleS(void); BOOL chSchRescRequiredI(void); #ifdef __cplusplus } diff --git a/src/include/threads.h b/src/include/threads.h index ba53e6158..a0c2189da 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -47,6 +47,8 @@ struct Thread { t_tstate p_state; /** Mode flags.*/ t_tmode p_flags; + /** Machine dependent processor context.*/ + Context p_ctx; /* * The following fields are merged in unions because they are all * state-specific fields. This trick saves some extra space for each @@ -79,8 +81,6 @@ struct Thread { void *p_wtobjp; #endif }; - /** Machine dependent processor context.*/ - Context p_ctx; /* * Start of the optional fields. */ -- cgit v1.2.3