diff options
Diffstat (limited to 'src/usr/fapi2')
| -rw-r--r-- | src/usr/fapi2/plat_utils.C | 29 | ||||
| -rwxr-xr-x | src/usr/fapi2/runtime/makefile | 2 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/usr/fapi2/plat_utils.C b/src/usr/fapi2/plat_utils.C index 38df6a63d..bf8cc0c48 100644 --- a/src/usr/fapi2/plat_utils.C +++ b/src/usr/fapi2/plat_utils.C @@ -41,6 +41,10 @@ #include <errl/errlmanager.H> #include <hwpf_fapi2_reasoncodes.H> +#if __HOSTBOOT_RUNTIME + #include "handleSpecialWakeup.H" +#endif + //****************************************************************************** // Trace descriptors //****************************************************************************** @@ -1010,4 +1014,29 @@ bool platIsScanTraceEnabled() return 1; } +//****************************************************************************** +// platSpecialWakeup +//****************************************************************************** +fapi2::ReturnCode platSpecialWakeup(const Target<TARGET_TYPE_ALL>& i_target, + const bool i_enable) +{ + fapi2::ReturnCode fapi_rc = fapi2::FAPI2_RC_SUCCESS; + FAPI_INF("platSpecialWakeup"); + +#ifdef __HOSTBOOT_RUNTIME + TARGETING::Target* l_target = + reinterpret_cast<TARGETING::Target*>(i_target.get()); + + errlHndl_t err_SW = handleSpecialWakeup(l_target,i_enable); + if(err_SW) + { + fapi_rc.setPlatDataPtr(reinterpret_cast<void *>(err_SW)); + } +#endif + + // On Hostboot, processor cores cannot sleep so return success to the + // fapiSpecialWakeup enable/disable calls + return fapi_rc; +} + } //end namespace diff --git a/src/usr/fapi2/runtime/makefile b/src/usr/fapi2/runtime/makefile index 6d56a3cf4..520f216d9 100755 --- a/src/usr/fapi2/runtime/makefile +++ b/src/usr/fapi2/runtime/makefile @@ -33,6 +33,8 @@ ROOTPATH = ../../../.. MODULE = fapi2_rt +EXTRAINCDIR += ${ROOTPATH}/src/usr/scom/runtime + SUBDIRS += test.d include ../fapi2.mk |

