summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/attn/attn.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/attn/attn.C')
-rw-r--r--src/usr/diag/attn/attn.C12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/usr/diag/attn/attn.C b/src/usr/diag/attn/attn.C
index 58006bc0d..5fd628564 100644
--- a/src/usr/diag/attn/attn.C
+++ b/src/usr/diag/attn/attn.C
@@ -90,7 +90,17 @@ errlHndl_t PrdImpl::callPrd(const AttentionList & i_attentions)
if(!attnList.empty())
{
- err = PRDF::main(INVALID_ATTENTION_TYPE, attnList);
+ // AttentionLists keep themselves sorted by attention type
+ // with higher priority attentions
+ // appearing before those with lower priority, where the
+ // priority is defined by the ATTENTION_VALUE_TYPE enum.
+ //
+ // When an AttentionList is converted to an AttnList
+ // the order is preserved. In this way, the PRD
+ // requirement that the highest priority attention
+ // appear first in the argument list is satisfied.
+
+ err = PRDF::main(attnList.front().attnType, attnList);
}
return err;
OpenPOWER on IntegriCloud