summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-04-18 16:18:22 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-04-24 09:52:42 -0500
commitf2dd13f86d803e241b835c5ca2a2a14d583ba01e (patch)
treeb46bd46aa359a19e460f2382bb2127b08d0ec3e6 /src/lib
parentf4e49418fd0743ab0d143f0ab3c505baefe58bfa (diff)
downloadtalos-hostboot-f2dd13f86d803e241b835c5ca2a2a14d583ba01e.tar.gz
talos-hostboot-f2dd13f86d803e241b835c5ca2a2a14d583ba01e.zip
Allow kernel to shutdown-to-payload.
This code is currently unused, due to InitService not having the payload address and the start_host_os IPL step being unimplemented. For testing purposes the 'shutdown' call in initservice.C can be changed to pass a non-zero base address (such as 256MB). RTC: 40871 Change-Id: I0f4b6bae62ede1853aabbcb28082300005e31897 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/926 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/syscall_misc.C9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C
index 897012daa..539399b7a 100644
--- a/src/lib/syscall_misc.C
+++ b/src/lib/syscall_misc.C
@@ -27,9 +27,14 @@
using namespace Systemcalls;
-void shutdown(uint64_t i_status)
+void shutdown(uint64_t i_status,
+ uint64_t i_payload_base,
+ uint64_t i_payload_entry)
{
- _syscall1(MISC_SHUTDOWN, reinterpret_cast<void*>(i_status));
+ _syscall3(MISC_SHUTDOWN,
+ reinterpret_cast<void*>(i_status),
+ reinterpret_cast<void*>(i_payload_base),
+ reinterpret_cast<void*>(i_payload_entry));
}
ProcessorCoreType cpu_core_type()
OpenPOWER on IntegriCloud