tests: watchdog: Interrupt reset mode modifications

In order for interrupt reset mode to work (reset the processor
after and interrupt) the interrupt does not has to be cleared,
and the qmsi hal layer clears the interrupt after the callback
has been invoked, the callback does not return and the processor
should reset.

Jira: ZEP-1566

Change-Id: Ic951a0f15fe95fb0ef5d752b831c62e6fa3ceea0
Signed-off-by: Sergio Rodriguez <sergio.sf.rodriguez@intel.com>
This commit is contained in:
Sergio Rodriguez 2017-02-16 11:52:38 -08:00 committed by Anas Nashif
commit b6cf56e5cc

View file

@ -42,6 +42,14 @@ static void wdt_int_cb(struct device *wdt_dev)
TC_PRINT("%s: Invoked (%u)\n", __func__, ++wdt_int_cnt);
QM_SCSS_GP->gps2++;
#ifdef INT_RESET
/* Don't come out from the loopback to avoid have the interrupt
* cleared and the system will reset in interrupt reset mode
*/
while (1)
;
#endif
}
static int test_wdt(uint32_t timeout, enum wdt_mode r_mode)