[Timers] Miscellaneous timer system fixes
Add missing comments to timer code. Lock system if no suitable timer source is found. Fix initialisation order so that timers are initialised before code that needs to use them.
This commit is contained in:
@@ -22,7 +22,8 @@ struct init_fn {
|
||||
*/
|
||||
|
||||
#define INIT_EARLY 01 /**< Early initialisation */
|
||||
#define INIT_NORMAL 02 /**< Normal initialisation */
|
||||
#define INIT_CONSOLE 02 /**< Console initialisation */
|
||||
#define INIT_NORMAL 03 /**< Normal initialisation */
|
||||
|
||||
/** @} */
|
||||
|
||||
@@ -54,14 +55,6 @@ struct startup_fn {
|
||||
|
||||
/** @} */
|
||||
|
||||
/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */
|
||||
#define INIT_CONSOLE 02
|
||||
#define INIT_GDBSYM 03
|
||||
#define INIT_CPU 04
|
||||
#define INIT_TIMERS 05
|
||||
#define INIT_LOADBUF 08
|
||||
#define INIT_PCMCIA 09
|
||||
|
||||
extern void initialise ( void );
|
||||
extern void startup ( void );
|
||||
extern void shutdown ( void );
|
||||
|
||||
Reference in New Issue
Block a user