From cf1b70f486a2696d523d585e91d0e4e5c7b8021c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 18 Mar 2010 16:01:11 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1749 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chschd.h | 15 ++++++++++++++- os/kernel/include/chsys.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'os/kernel/include') diff --git a/os/kernel/include/chschd.h b/os/kernel/include/chschd.h index b8406722b..d1b69cad5 100644 --- a/os/kernel/include/chschd.h +++ b/os/kernel/include/chschd.h @@ -105,14 +105,27 @@ register Thread *currp asm(CH_CURRP_REGISTER_CACHE); extern "C" { #endif void scheduler_init(void); +#if !defined(PORT_OPTIMIZED_READYI) Thread *chSchReadyI(Thread *tp); +#endif +#if !defined(PORT_OPTIMIZED_GOSLEEPS) void chSchGoSleepS(tstate_t newstate); +#endif +#if !defined(PORT_OPTIMIZED_GOSLEEPTIMEOUTS) msg_t chSchGoSleepTimeoutS(tstate_t newstate, systime_t time); +#endif +#if !defined(PORT_OPTIMIZED_WAKEUPS) void chSchWakeupS(Thread *tp, msg_t msg); +#endif +#if !defined(PORT_OPTIMIZED_DORESCHEDULEI) void chSchDoRescheduleI(void); +#endif +#if !defined(PORT_OPTIMIZED_RESCHEDULES) void chSchRescheduleS(void); +#endif +#if !defined(PORT_OPTIMIZED_ISRESCHREQUIREDEXI) bool_t chSchIsRescRequiredExI(void); - void chSchDoYieldS(void); +#endif #ifdef __cplusplus } #endif diff --git a/os/kernel/include/chsys.h b/os/kernel/include/chsys.h index 0a2fa67ad..5c773136f 100644 --- a/os/kernel/include/chsys.h +++ b/os/kernel/include/chsys.h @@ -148,7 +148,7 @@ /** * @brief IRQ handler exit code. * @note Usually IRQ handlers function are also declared naked. - * @note This macro usually performs the final reschedulation by using + * @note This macro usually performs the final reschedule by using * @p chSchRescRequiredI() and @p chSchDoRescheduleI(). */ #define CH_IRQ_EPILOGUE() PORT_IRQ_EPILOGUE() -- cgit v1.2.3