This patch makes the generic watchdog code use a prioritized constructor. By implication the device drivers' init_hw() member functions will now run at CYG_INIT_DEV_WATCHDOG.
Bart 2009-02-04 Bart Veer <[email protected]> * src/watchdog.cxx: switch to CYG_INIT_DEV_WATCHDOG init priority. Index: src/watchdog.cxx =================================================================== RCS file: /cvs/ecos/ecos/packages/io/watchdog/current/src/watchdog.cxx,v retrieving revision 1.5 diff -u -p -r1.5 watchdog.cxx --- src/watchdog.cxx 29 Jan 2009 17:49:50 -0000 1.5 +++ src/watchdog.cxx 4 Feb 2009 17:43:20 -0000 @@ -63,7 +63,7 @@ // Statics // A static pointer to the single system defined watchdog device. -Cyg_Watchdog Cyg_Watchdog::watchdog; +Cyg_Watchdog Cyg_Watchdog::watchdog CYGBLD_ATTRIB_INIT_PRI( CYG_INIT_DEV_WATCHDOG ); // ------------------------------------------------------------------------- // Constructor
