diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2014-11-07 14:46:43 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-12-01 15:44:56 -0600 |
commit | 991b550a9e53036f13e728105b10b85e341dff3f (patch) | |
tree | 5b325b318d1e082c6e39bec1a77a433b07e5e38b /src/usr/diag/prdf/framework/service/prdfPlatServices.H | |
parent | 197c9f53a5bb7d20ec8f4e0aa2093b329c82de41 (diff) | |
download | talos-hostboot-991b550a9e53036f13e728105b10b85e341dff3f.tar.gz talos-hostboot-991b550a9e53036f13e728105b10b85e341dff3f.zip |
PRD: split FSP only PlatServices functions
Change-Id: Id3c081aec51f92bd45b29f62cdadf28b0f668ce5
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14463
Tested-by: Jenkins Server
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14576
Diffstat (limited to 'src/usr/diag/prdf/framework/service/prdfPlatServices.H')
-rw-r--r-- | src/usr/diag/prdf/framework/service/prdfPlatServices.H | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/usr/diag/prdf/framework/service/prdfPlatServices.H b/src/usr/diag/prdf/framework/service/prdfPlatServices.H index 5fb51aa0c..c366bd69b 100644 --- a/src/usr/diag/prdf/framework/service/prdfPlatServices.H +++ b/src/usr/diag/prdf/framework/service/prdfPlatServices.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -55,9 +57,25 @@ namespace PlatServices // Inline function definitions for Hostboot compiler optimization. See // prdfPlatServices_common.H for the function declarations. -inline bool isMasterFSP() { return true; } -inline int32_t syncFile( const char * i_fileName ) { return SUCCESS; } -inline bool atRuntime() { return false; } +inline bool atRuntime() +{ + #ifdef __HOSTBOOT_RUNTIME + return true; + #else + return false; + #endif +} + +inline bool isSapphireRunning() +{ + #ifdef __HOSTBOOT_RUNTIME + return true; + #else + return false; + #endif +} + +inline bool isSmpCoherent() { return false; } //############################################################################## //## Processor specific functions |