/* Check if a clock timer expired and run its watchdog function. */
if (next_timeout <= realtime) {
- tmrs_exptimers(&clock_timers, realtime);
+ tmrs_exptimers(&clock_timers, realtime, NULL);
next_timeout = clock_timers == NULL ?
TMR_NEVER : clock_timers->tmr_exp_time;
}
/* Insert the new timer in the active timers list. Always update the
* next timeout time by setting it to the front of the active list.
*/
- tmrs_settimer(&clock_timers, tp, exp_time, watchdog);
+ tmrs_settimer(&clock_timers, tp, exp_time, watchdog, NULL);
next_timeout = clock_timers->tmr_exp_time;
}
* active and expired lists. Always update the next timeout time by setting
* it to the front of the active list.
*/
- tmrs_clrtimer(&clock_timers, tp);
+ tmrs_clrtimer(&clock_timers, tp, NULL);
next_timeout = (clock_timers == NULL) ?
TMR_NEVER : clock_timers->tmr_exp_time;
}
#endif
/* Disable/Enable hardware interrupts. */
-#define lock(c, v) do { intr_disable(); locktimestart(c, v); } while(0);
-#define unlock(c) do { locktimeend(c); intr_enable(); } while(0);
+#define lock(c, v) do { intr_disable(); locktimestart(c, v); } while(0)
+#define unlock(c) do { locktimeend(c); intr_enable(); } while(0)
/* Sizes of memory tables. The boot monitor distinguishes three memory areas,
* namely low mem below 1M, 1M-16M, and mem after 16M. More chunks are needed