diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 12:54:10 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 12:54:10 +0000 |
commit | e09208306bbc7c1c1ff533a95f6e126f8e56c030 (patch) | |
tree | 0516a18cb29639aa4d4445889d4bcc7faa9b2506 /os/rt/include | |
parent | 6bef4c74c3fe7c320893ce20673965c48151f482 (diff) | |
download | ChibiOS-e09208306bbc7c1c1ff533a95f6e126f8e56c030.tar.gz ChibiOS-e09208306bbc7c1c1ff533a95f6e126f8e56c030.tar.bz2 ChibiOS-e09208306bbc7c1c1ff533a95f6e126f8e56c030.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7729 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r-- | os/rt/include/chvt.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index fe55fcc19..71a8c6bbf 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -453,9 +453,11 @@ static inline void chVTDoTickI(void) { virtual_timer_t *vtp;
--ch.vtlist.vt_next->vt_delta;
- vtp = ch.vtlist.vt_next;
- while (vtp->vt_delta == 0U) {
- vtfunc_t fn = vtp->vt_func;
+ while (ch.vtlist.vt_next->vt_delta == 0U) {
+ vtfunc_t fn;
+
+ vtp = ch.vtlist.vt_next;
+ 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;
|