diff options
author | Star Zeng <star.zeng@intel.com> | 2018-10-24 10:27:48 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-10-25 11:50:49 +0800 |
commit | 27bf6712b4ea896bf39b00401218ac3b67b683ae (patch) | |
tree | c95b9e96fe265301f2dbc7e5096394d921f6eb5c /IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c | |
parent | 8c09f300103993985c91532239a72ba879df0b31 (diff) | |
download | edk2-27bf6712b4ea896bf39b00401218ac3b67b683ae.zip edk2-27bf6712b4ea896bf39b00401218ac3b67b683ae.tar.gz edk2-27bf6712b4ea896bf39b00401218ac3b67b683ae.tar.bz2 |
IntelSiliconPkg VTdDxe: Report status code for VTd error
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1273
Current code only uses DEBUG() for VTd error.
This patch updates to also report status code for VTd error.
Test done:
Created case that has VTd error and confirmed the error
status code could be reported as expected.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c')
-rw-r--r-- | IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c index e564d37..4528551 100644 --- a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c +++ b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/VtdReg.c @@ -545,6 +545,7 @@ DumpVtdIfError ( }
if (HasError) {
+ REPORT_STATUS_CODE (EFI_ERROR_CODE, PcdGet32 (PcdErrorCodeVTdError));
DEBUG((DEBUG_INFO, "\n#### ERROR ####\n"));
DumpVtdRegs (Num);
DEBUG((DEBUG_INFO, "#### ERROR ####\n\n"));
|