Vladimir Serbinenko has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81511?usp=email )
Change subject: reboot_to_cros: Add a tool to reboot into ChromeOS in hybrid config ......................................................................
reboot_to_cros: Add a tool to reboot into ChromeOS in hybrid config
Change-Id: I9b72d3ab380c70fab336b1cd989c70a83964ccd2 Signed-off-by: Vladimir Serbinenko phcoder@gmail.com --- A util/reboot_to_cros/reboot_to_cros.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/81511/1
diff --git a/util/reboot_to_cros/reboot_to_cros.c b/util/reboot_to_cros/reboot_to_cros.c new file mode 100644 index 0000000..3a8b2bc --- /dev/null +++ b/util/reboot_to_cros/reboot_to_cros.c @@ -0,0 +1,9 @@ +#include <unistd.h> +#include <sys/io.h> + +int main() { + iopl(3); + outb(0x77, 0x72); + outb(0xc1, 0x73); + execl ("/usr/sbin/shutdown", "shutdown", "-r", "now", NULL); +}