diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2012-04-25 19:21:49 +0200 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2012-04-25 19:21:49 +0200 |
commit | 5c79eb0c59d7335d89650c6eb0f3ee4a1bfecd83 (patch) | |
tree | 055e98bb79c07351fefe2b901a904c08c841caf0 | |
parent | 5d9ba900d23f7e45db950cc883de36c07e912b7e (diff) | |
download | SLOF-5c79eb0c59d7335d89650c6eb0f3ee4a1bfecd83.zip SLOF-5c79eb0c59d7335d89650c6eb0f3ee4a1bfecd83.tar.gz SLOF-5c79eb0c59d7335d89650c6eb0f3ee4a1bfecd83.tar.bz2 |
Enable RTAS reboot and power-off for board-qemu, too.
Now that QEMU supports these two RTAS calls, we can also use them on board-qemu.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
-rw-r--r-- | board-qemu/slof/rtas.fs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board-qemu/slof/rtas.fs b/board-qemu/slof/rtas.fs index 9b6379e..856aa5f 100644 --- a/board-qemu/slof/rtas.fs +++ b/board-qemu/slof/rtas.fs @@ -79,6 +79,8 @@ find-qemu-rtas rtas-node get-package-property IF 0 ELSE drop l@ THEN ; +#include <rtas/rtas-reboot.fs> + : rtas-start-cpu ( pid loc r3 -- status ) " start-cpu" rtas-get-token rtas-cb rtas>token l! 3 rtas-cb rtas>nargs l! @@ -166,6 +168,9 @@ find-qemu-rtas : of-start-cpu rtas-start-cpu ; +' power-off to halt +' rtas-system-reboot to reboot + \ Methods of the rtas node proper rtas-node set-node |