public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
* update generic watchdog init pri
@ 2009-02-04 17:49 Bart Veer
  0 siblings, 0 replies; only message in thread
From: Bart Veer @ 2009-02-04 17:49 UTC (permalink / raw)
  To: ecos-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-04 17:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-04 17:49 update generic watchdog init pri Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).