summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/targeting')
-rw-r--r--src/include/usr/targeting/common/util.H26
-rw-r--r--src/include/usr/targeting/targplatutil.H14
2 files changed, 15 insertions, 25 deletions
diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H
index 479cdfa75..68b61b1f1 100644
--- a/src/include/usr/targeting/common/util.H
+++ b/src/include/usr/targeting/common/util.H
@@ -156,30 +156,6 @@ bool is_sapphire_load(void);
bool is_avp_load(void);
/**
- * @brief Utility function to obtain the highest known address in the system
- */
-uint64_t get_top_mem_addr();
-
-/**
- * @brief Utility function to obtain the highest known address in a given proc
- *
- * @param[in] i_proc: Proc that we want to calculate the top address for
- */
-uint64_t get_top_mem_addr(Target* i_proc);
-
-/**
- * @brief Utility function to obtain the lowest known address in the system
- */
-uint64_t get_bottom_mem_addr();
-
-/**
- * @brief Utility function to obtain the lowest known address in a given proc
- *
- * @param[in] i_proc: Proc that we want to calculate the bottom address for
- */
-uint64_t get_bottom_mem_addr(Target* i_proc);
-
-/**
* Order two processor targets by NODE_ID then CHIP_ID.
* @param[in] First processor target
* @param[in] Second processor target
@@ -196,6 +172,6 @@ bool orderByNodeAndPosition( Target* i_firstProc,
*/
uint8_t is_fused_mode( );
-}
+} // TARGETING
#endif // __TARGETING_COMMON_UTIL_H
diff --git a/src/include/usr/targeting/targplatutil.H b/src/include/usr/targeting/targplatutil.H
index c13f1a0a8..34d8bebc0 100644
--- a/src/include/usr/targeting/targplatutil.H
+++ b/src/include/usr/targeting/targplatutil.H
@@ -58,6 +58,20 @@ namespace UTIL
// is reserved for invalid sensor
static const uint16_t INVALID_IPMI_SENSOR = 0xFF;
+ // WARNING: addition of risk levels that don't support SMF will have a
+ // significant effect on the behavior of SMF code. Please ensure that
+ // (at least) src/usr/secureboot/smf/smf_utils.C is updated
+ // accordingly!
+ typedef enum
+ {
+ P9N22_P9C12_RUGBY_FAVOR_SECURITY = 0x00,
+ P9N22_P9C12_RUGBY_FAVOR_PERFORMANCE = 0x01,
+ P9N22_NO_RUGBY_MITIGATIONS = 0x02,
+ P9N22_P9N23_JAVA_PERF = 0x03,
+ P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_SECURITY = 0x04,
+ P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_PERFORMANCE = 0x05,
+ } Risk_level;
+
/**
* @brief Creates a standard error log of tracing type
*
OpenPOWER on IntegriCloud