Hi, I have studied the u-boot code for 'watchdog' timer feature. As per my understanding 'Decrementer' interrupt has been used to reset the Watchdog timer. The 'timer_interrupt()' of 'lib_ppc/interrupts.c' gets called whenever the 'Decrement' inetterupt occurs. The 'Decrement Timer' has been initiallized in 'interrupt_init()' of 'lib_ppc/interrupts.c'.
So the 'Decrement Timer' interrupt handler ensures that the 'WATCHDOG_RESET' gets called when user doesn't press key on u-boot prompt for long time. As the relevant code is already there I don't think we have to add the patch. Thanks everyone for helping me to solve this riddle. Regards, Sachin -----Original Message----- From: Sachin Rane Sent: Thursday, January 15, 2009 6:45 PM To: 'Wolfgang Denk' Cc: u-boot@lists.denx.de Subject: RE: [U-Boot] Watchdog and u-boot command prompt Hi, > I suggest you submit a patch? I am doing some kind of stress tetsing of the code to test the 'CONFIG_WATCHDOG' feature. Once I am done I will definitely give the patch for the 'missing' code. Thanks. Regards, Sachin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot