Changed arguments of timer library functions.

This commit is contained in:
Ben Gras 2005-06-17 13:36:01 +00:00
parent 2f25279105
commit 3c7120d830
2 changed files with 5 additions and 5 deletions

View file

@ -157,7 +157,7 @@ message *m_ptr; /* pointer to request message */
/* 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;
}
@ -309,7 +309,7 @@ tmr_func_t watchdog; /* watchdog to be called */
/* 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;
}
@ -324,7 +324,7 @@ struct timer *tp; /* pointer to timer structure */
* 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;
}

View file

@ -74,8 +74,8 @@
#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