From 89741bd322c16ba59151fd3c1c22b9daec278d62 Mon Sep 17 00:00:00 2001 From: dak664 Date: Thu, 7 Apr 2011 17:47:54 -0400 Subject: [PATCH] Exit on watchdog reboot call --- cpu/native/watchdog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu/native/watchdog.c b/cpu/native/watchdog.c index 0fbff9f21..6aa44e196 100644 --- a/cpu/native/watchdog.c +++ b/cpu/native/watchdog.c @@ -32,6 +32,7 @@ */ #include "dev/watchdog.h" +#include /*---------------------------------------------------------------------------*/ void @@ -57,5 +58,7 @@ watchdog_stop(void) void watchdog_reboot(void) { + // Death by watchdog. + exit(-1); } /*---------------------------------------------------------------------------*/