summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/mach-sandbox
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-10-12 08:26:17 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-13 08:45:15 +0200
commit7bfaaa6ffe72513a1aa8c4bdd73f1324efe32b6b (patch)
treeba0bc39e0f5b82732ce01052c3b779a489571810 /arch/sandbox/mach-sandbox
parent9e0c0930d108ebe2d6c098370417c7694c05dcae (diff)
downloadbarebox-7bfaaa6ffe72513a1aa8c4bdd73f1324efe32b6b.tar.gz
barebox-7bfaaa6ffe72513a1aa8c4bdd73f1324efe32b6b.tar.xz
sandbox: add watchdog driver
Add SIGALRM based watchdog driver. This can reset barebox if stuck and plays nicely with $global.system.reset. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/mach-sandbox')
-rw-r--r--arch/sandbox/mach-sandbox/include/mach/linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/mach-sandbox/include/mach/linux.h b/arch/sandbox/mach-sandbox/include/mach/linux.h
index 7bb022a6de..b26bfc24a2 100644
--- a/arch/sandbox/mach-sandbox/include/mach/linux.h
+++ b/arch/sandbox/mach-sandbox/include/mach/linux.h
@@ -25,6 +25,8 @@ void linux_reexec(void);
int linux_execve(const char * filename, char *const argv[], char *const envp[]);
+int linux_watchdog_set_timeout(unsigned int timeout);
+
int barebox_register_console(int stdinfd, int stdoutfd);
int barebox_register_dtb(const void *dtb);