From f2dd13f86d803e241b835c5ca2a2a14d583ba01e Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 18 Apr 2012 16:18:22 -0500 Subject: 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 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert --- src/include/sys/misc.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/include/sys') diff --git a/src/include/sys/misc.h b/src/include/sys/misc.h index d07c5afff..fcf88f08a 100644 --- a/src/include/sys/misc.h +++ b/src/include/sys/misc.h @@ -49,9 +49,14 @@ extern "C" #ifdef __HIDDEN_SYSCALL_SHUTDOWN /** @fn shutdown() * @brief Shutdown all CPUs (hardware threads) - * @param[in] i_status The status code to post + * @param[in] i_status The status code to post + * @param[in] i_payload_base The base address (target HRMOR) of the payload. + * @param[in] i_payload_entry The offset from base address of the payload + * entry-point. */ -extern "C" void shutdown(uint64_t i_status); +extern "C" void shutdown(uint64_t i_status, + uint64_t i_payload_base, + uint64_t i_payload_entry); #endif /** @enum ProcessorCoreType -- cgit v1.2.1