This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
update generic watchdog init pri
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at sourceware dot org
- Date: Wed, 4 Feb 2009 17:49:07 GMT
- Subject: update generic watchdog init pri
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 <bartv@ecoscentric.com>
* 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