diff options
author | Maxime de Roucy <maxime.deroucy@gmail.com> | 2015-09-27 15:53:40 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-10-17 06:55:54 +0000 |
commit | 8190078ad58114ddf7969f19e12d7bd27c573d3e (patch) | |
tree | 6822f42c727bb92e70043891997abb4e67ba5ba4 /payloads/coreinfo | |
parent | dc1b3c162e56b45ed398db072d52eee5729c8f15 (diff) |
coreinfo: reboot when finished
Behave as nvramcui.
Avoid a "General Protection Fault Exception" when launched by SeaBIOS on
pcengines APU1.
Change-Id: I00b1f859f76e693e8d49a38c1e02f4f49add85b7
Signed-off-by: Maxime de Roucy <maxime.deroucy@gmail.com>
Reviewed-on: http://review.coreboot.org/11731
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r-- | payloads/coreinfo/coreinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index 5bd1068d1e..df520562b7 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -301,6 +301,9 @@ int main(void) loop(); + /* reboot */ + outb(0x6, 0xcf9); + halt(); return 0; } |