[rtems commit] score: Avoid _Scheduler_Get_by_CPU_index( 0 )
Sebastian Huber
sebh at rtems.org
Thu Nov 10 08:59:43 UTC 2016
Module: rtems
Branch: master
Commit: f20dfa8fcd6fc0cdc66b16570b198872f61f5a8b
Changeset: http://git.rtems.org/rtems/commit/?id=f20dfa8fcd6fc0cdc66b16570b198872f61f5a8b
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 4 15:47:25 2016 +0100
score: Avoid _Scheduler_Get_by_CPU_index( 0 )
Avoid use of processor index 0 which may have no scheduler assigned.
---
cpukit/score/include/rtems/score/coremuteximpl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/include/rtems/score/coremuteximpl.h b/cpukit/score/include/rtems/score/coremuteximpl.h
index 31d2a6e..e3da6a7 100644
--- a/cpukit/score/include/rtems/score/coremuteximpl.h
+++ b/cpukit/score/include/rtems/score/coremuteximpl.h
@@ -237,7 +237,7 @@ _CORE_ceiling_mutex_Get_scheduler(
#if defined(RTEMS_SMP)
return the_mutex->scheduler;
#else
- return _Scheduler_Get_by_CPU_index( 0 );
+ return &_Scheduler_Table[ 0 ];
#endif
}
More information about the vc
mailing list