mirror of https://github.com/rusefi/ChibiOS.git
Fixed bug #1170.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14654 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
94e1124a44
commit
fb5eb3a51d
|
@ -194,18 +194,18 @@ thread_t *chRegNextThread(thread_t *tp) {
|
|||
if (nqp == REG_HEADER(currcore)) {
|
||||
ntp = NULL;
|
||||
}
|
||||
#if CH_CFG_USE_DYNAMIC == TRUE
|
||||
else {
|
||||
uint8_t *p = (uint8_t *)nqp;
|
||||
/*lint -save -e413 [1.3] Safe to subtract a calculated offset.*/
|
||||
ntp = threadref((p - __CH_OFFSETOF(thread_t, rqueue)));
|
||||
/*lint -restore*/
|
||||
|
||||
#if CH_CFG_USE_DYNAMIC == TRUE
|
||||
chDbgAssert(ntp->refs < (trefs_t)255, "too many references");
|
||||
|
||||
ntp->refs++;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
chSysUnlock();
|
||||
#if CH_CFG_USE_DYNAMIC == TRUE
|
||||
chThdRelease(tp);
|
||||
|
|
|
@ -74,6 +74,8 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** Next ***
|
||||
- FIX: Fixed function chRegNextThread() broken when CH_CFG_USE_DYNAMIC
|
||||
is disabled (bug #1170).
|
||||
- FIX: Fixed insufficient information in RT registry (bug #1169)(TBP).
|
||||
- FIX: Fixed code base not compatible with -Wcast-align=strict (bug #1168)(TBP).
|
||||
- FIX: Fixed wrong chconf.h for ADuCM36x demos (bug #1167)
|
||||
|
|
Loading…
Reference in New Issue