diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2012-08-06 14:09:37 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-08-13 13:16:54 -0500 |
commit | 5023b07888935148844de78239f07d6fa371d9e8 (patch) | |
tree | b5295ced4bdf6ada2a778c196ec3c7bf75910df8 /src/usr/mbox/mailboxsp.C | |
parent | 11c8a7dc6e0ec3c31f081d1e30a04a6e7038f918 (diff) | |
download | talos-hostboot-5023b07888935148844de78239f07d6fa371d9e8.tar.gz talos-hostboot-5023b07888935148844de78239f07d6fa371d9e8.zip |
Implement attribute sync from hostboot to fsp
RTC: 41245
Change-Id: Icb7eac8cdcc6a9bc4d19bd2e307f352b835f2df9
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1485
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/mbox/mailboxsp.C')
-rw-r--r-- | src/usr/mbox/mailboxsp.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/usr/mbox/mailboxsp.C b/src/usr/mbox/mailboxsp.C index 5312e6c16..414c68173 100644 --- a/src/usr/mbox/mailboxsp.C +++ b/src/usr/mbox/mailboxsp.C @@ -1441,5 +1441,24 @@ msg_q_t MBOX::msgq_unregister(queue_id_t i_queue_id) return msgQ; } +bool MBOX::mailbox_enabled() +{ + bool enabled = false; + + TARGETING::Target * sys = NULL; + + TARGETING::targetService().getTopLevelTarget( sys ); + + TARGETING::SpFunctions spfuncs; + + if( sys && + sys->tryGetAttr<TARGETING::ATTR_SP_FUNCTIONS>(spfuncs) && + spfuncs.mailboxEnabled) + { + enabled = true; + } + + return enabled; +} |