From 34012377c29895db060c44ae0ceab8147cce728d Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Fri, 22 Jul 2016 15:39:05 +1000 Subject: 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 Signed-off-by: Stewart Smith --- test/hello_world/hello_kernel/hello_kernel.S | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.1