git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14654 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-08-16 06:22:31 +00:00
parent 94e1124a44
commit fb5eb3a51d
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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)