summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/fapi/fapiParseErrorInfo.pl
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2013-03-22 16:00:47 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-04-04 17:08:36 -0500
commitd80544e716c93297feb4c64fceabcdec6c2efbc7 (patch)
treec1652e24fd8487cbf5ce6fdc67734938c2f28a4e /src/usr/hwpf/fapi/fapiParseErrorInfo.pl
parentf3af02b13688f74136c9983fb9919bf64b9eb304 (diff)
downloadtalos-hostboot-d80544e716c93297feb4c64fceabcdec6c2efbc7.tar.gz
talos-hostboot-d80544e716c93297feb4c64fceabcdec6c2efbc7.zip
HWPF: Support Procedure Callouts
Change-Id: I250472ba4125944ba17433c759c915b30a9bc93e RTC: 50323 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3699 Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/fapi/fapiParseErrorInfo.pl')
-rwxr-xr-xsrc/usr/hwpf/fapi/fapiParseErrorInfo.pl32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/usr/hwpf/fapi/fapiParseErrorInfo.pl b/src/usr/hwpf/fapi/fapiParseErrorInfo.pl
index 2ddc8c1a8..996ec414c 100755
--- a/src/usr/hwpf/fapi/fapiParseErrorInfo.pl
+++ b/src/usr/hwpf/fapi/fapiParseErrorInfo.pl
@@ -51,6 +51,7 @@
# mjjones 11/09/12 Generate fapiSetSbeError.H
# mjjones 01/09/13 Fix CFAM register capture
# mjjones 03/14/13 Allow 64bit literals for SCOM reg capture
+# mjjones 03/22/13 Support Procedure Callouts
#
# End Change Log ******************************************************
@@ -461,12 +462,12 @@ foreach my $argnum (1 .. $#ARGV)
$eiEntryCount++;
}
- # Target callouts
+ # Procedure/Target callouts
foreach my $callout (@{$err->{callout}})
{
- if (! exists $callout->{target})
+ if ((! exists $callout->{target}) && (! exists $callout->{procedure}))
{
- print ("fapiParseErrorInfo.pl ERROR. Callout target missing\n");
+ print ("fapiParseErrorInfo.pl ERROR. Callout procedure/target missing\n");
exit(1);
}
@@ -476,18 +477,33 @@ foreach my $argnum (1 .. $#ARGV)
exit(1);
}
- # Check the type
- print EIFILE "fapi::fapiCheckType<const fapi::Target *>(&$callout->{target}); ";
+ my $objNum = 0;
+ if (exists $callout->{target})
+ {
+ # Check the type
+ print EIFILE
+ "fapi::fapiCheckType<const fapi::Target *>(&$callout->{target}); ";
- # Add the Target to the objectlist if it doesn't already exist
- my $objNum = addEntryToArray(\@eiObjects, $callout->{target});
+ # Add the Target to the objectlist if it doesn't already exist
+ $objNum = addEntryToArray(\@eiObjects, $callout->{target});
+ }
# Add an EI entry to eiEntryStr
if ($eiEntryCount > 0)
{
$eiEntryStr .= ", ";
}
- $eiEntryStr .= "{fapi::ReturnCode::EI_TYPE_CALLOUT, $objNum, fapi::PRI_$callout->{priority}, 0}";
+
+ if (exists $callout->{target})
+ {
+ $eiEntryStr .=
+ "{fapi::ReturnCode::EI_TYPE_CALLOUT, $objNum, fapi::CalloutPriorities::$callout->{priority}, 0}";
+ }
+ else
+ {
+ $eiEntryStr .=
+ "{fapi::ReturnCode::EI_TYPE_PROCEDURE_CALLOUT, 0, fapi::CalloutPriorities::$callout->{priority}, fapi::ProcedureCallouts::$callout->{procedure}}";
+ }
$eiEntryCount++;
}
OpenPOWER on IntegriCloud