git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7729 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2015-03-07 12:54:10 +00:00
parent 6bef4c74c3
commit e09208306b
1 changed files with 5 additions and 3 deletions

View File

@ -453,9 +453,11 @@ static inline void chVTDoTickI(void) {
virtual_timer_t *vtp;
--ch.vtlist.vt_next->vt_delta;
while (ch.vtlist.vt_next->vt_delta == 0U) {
vtfunc_t fn;
vtp = ch.vtlist.vt_next;
while (vtp->vt_delta == 0U) {
vtfunc_t fn = vtp->vt_func;
fn = vtp->vt_func;
vtp->vt_func = NULL;
/*lint -save -e9087 -e740 [11.3, 1.3] Cast required by list handling.*/
vtp->vt_next->vt_prev = (virtual_timer_t *)&ch.vtlist;