[Timers] Initialise timers on first use

Timers are sometimes required before the call to initialise(), so we
cannot rely on initialise() to set up the timers before use.

Also fix a potential integer overflow issue in generic_currticks_udelay()
This commit is contained in:
Michael Brown
2008-03-18 15:23:10 +00:00
parent 2652abdc5f
commit 070cbebc26
2 changed files with 26 additions and 27 deletions

View File

@@ -2,6 +2,7 @@
#define GPXE_TIMER_H
#include <stddef.h>
#include <gpxe/tables.h>
typedef unsigned long tick_t;