diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-07-22 15:39:05 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-22 17:10:10 +1000 |
commit | 34012377c29895db060c44ae0ceab8147cce728d (patch) | |
tree | 645a4910db9ae5e7b47bf48d22fbb88ecd95720c /test | |
parent | 6787f6a47392f44f8b214a542ce3e5c1c1f4ec17 (diff) | |
download | skiboot-34012377c29895db060c44ae0ceab8147cce728d.zip skiboot-34012377c29895db060c44ae0ceab8147cce728d.tar.gz skiboot-34012377c29895db060c44ae0ceab8147cce728d.tar.bz2 |
test/hello_world: always use shutdown type zero
The hello world kernel fails to correctly set r3 before making the
shutdown opal call. On FSP machines only shutdown types 0 and 1 are
recognised as valid shutdown types. If any other type is specified
(in r3) the call is rejected with an OPAL_PARAMETER error and the
machine will continue running.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/hello_world/hello_kernel/hello_kernel.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/hello_world/hello_kernel/hello_kernel.S b/test/hello_world/hello_kernel/hello_kernel.S index 6cc6409..fecf5a3 100644 --- a/test/hello_world/hello_kernel/hello_kernel.S +++ b/test/hello_world/hello_kernel/hello_kernel.S @@ -47,6 +47,7 @@ here: mflr %r8 /* work out where we are running */ bctrl li %r0, 5 /* OPAL_CEC_POWER_DOWN */ + li %r3, 0 /* normal shutdown */ mr %r2, %r13 mtctr %r14 bctrl |