summaryrefslogtreecommitdiff
path: root/chip/host/reboot.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-07-23 12:13:42 +0800
committerChromeBot <chrome-bot@google.com>2013-07-24 15:50:19 -0700
commit99e4a977986f67334f6b82a87f23f66cf88f4cb4 (patch)
tree3002343b1906ee1f4ae1a49599ccfad319e4a0db /chip/host/reboot.h
parent5afcb815d60ed16c6bfe48ea9103223acb2e0e0d (diff)
downloadchrome-ec-99e4a977986f67334f6b82a87f23f66cf88f4cb4.tar.gz
Reboot emulator with execv()
With this, the emulator is able to reboot itself without the help of run_host_test script. This makes it easier for development and also speeds up the test. BUG=chrome-os-partner:19235 TEST=Pass all tests BRANCH=None Change-Id: Ifa510442de19256c671ab91b6bc75fe9e8b9dc7b Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62969 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/host/reboot.h')
-rw-r--r--chip/host/reboot.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chip/host/reboot.h b/chip/host/reboot.h
new file mode 100644
index 0000000000..b6a7d817e6
--- /dev/null
+++ b/chip/host/reboot.h
@@ -0,0 +1,13 @@
+/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Emulator self-reboot procedure */
+
+#ifndef __REBOOT_H
+#define __REBOOT_H
+
+void emulator_reboot(void);
+
+#endif