From: Jan Beulich Date: Mon, 22 Apr 2013 11:57:13 +0000 (+0200) Subject: EFI: update error indicators X-Git-Tag: 4.3.0-rc1~62 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4fdef9a6cabe9810793f80df88d559a22998157b;p=people%2Fiwj%2Fxen.git EFI: update error indicators ... from gnu-efi-3.0t. Decode a few of them in x86's PrintErrMesg(). Signed-off-by: Jan Beulich Acked-by: Keir Fraser Acked-by: George Dunlap --- diff --git a/xen/arch/x86/efi/boot.c b/xen/arch/x86/efi/boot.c index 4005b5e7d6..3de0ce7e54 100644 --- a/xen/arch/x86/efi/boot.c +++ b/xen/arch/x86/efi/boot.c @@ -234,6 +234,15 @@ static void __init PrintErrMesg(const CHAR16 *mesg, EFI_STATUS ErrCode) case EFI_VOLUME_FULL: mesg = L"Volume is full"; break; + case EFI_SECURITY_VIOLATION: + mesg = L"Security violation"; + break; + case EFI_CRC_ERROR: + mesg = L"CRC error"; + break; + case EFI_COMPROMISED_DATA: + mesg = L"Compromised data"; + break; default: PrintErr(L"ErrCode: "); DisplayUint(ErrCode, 0); diff --git a/xen/include/efi/efierr.h b/xen/include/efi/efierr.h index 669d7baee7..dfd3d3cf48 100644 --- a/xen/include/efi/efierr.h +++ b/xen/include/efi/efierr.h @@ -50,6 +50,13 @@ Revision History #define EFI_ICMP_ERROR EFIERR(22) #define EFI_TFTP_ERROR EFIERR(23) #define EFI_PROTOCOL_ERROR EFIERR(24) +#define EFI_INCOMPATIBLE_VERSION EFIERR(25) +#define EFI_SECURITY_VIOLATION EFIERR(26) +#define EFI_CRC_ERROR EFIERR(27) +#define EFI_END_OF_MEDIA EFIERR(28) +#define EFI_END_OF_FILE EFIERR(31) +#define EFI_INVALID_LANGUAGE EFIERR(32) +#define EFI_COMPROMISED_DATA EFIERR(33) #define EFI_WARN_UNKOWN_GLYPH EFIWARN(1) #define EFI_WARN_DELETE_FAILURE EFIWARN(2)