From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.5673.1677196505855436099 for ; Thu, 23 Feb 2023 15:55:16 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CwDxpLBH; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: andrei.warkentin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677196516; x=1708732516; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bzBO2gffBq5im+al7/7xss/TrV8K32Jv7UXM1V8umlM=; b=CwDxpLBH+YvGlqwiJMxLfNTJP3+QGjoDXfSMqaM2LPCcFUc3chPsQS+u jg7C0G18PtXOrvct0cI0HsajsAXP/BL3fYVkgIOAisVLokid6PexLyqRr i0y74tpJOiWoalVXs/vpTeXfbPsfJWAx14STfBPYsMrIMJDd+iuYMP1KB j0w32TSSc0wu+SA8w7mieNN/MyFsdH5ApgOomPENwzZ2bTOyrJB4ZU7D7 shyM7raL+W8volfS/g0y9HRypSokM4k5q5KvdXiNaV4+4hzSBSgasLxUv w76T5NHHXsP2tExtzmJMgEWzVDk8R5wijSz4rULiG86evMEMdYNfL+PH5 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="321549988" X-IronPort-AV: E=Sophos;i="5.97,322,1669104000"; d="scan'208";a="321549988" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2023 15:55:15 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10630"; a="702984536" X-IronPort-AV: E=Sophos;i="5.97,322,1669104000"; d="scan'208";a="702984536" Received: from cywong-mobl.amr.corp.intel.com (HELO awarkent-mobl1.amr.corp.intel.com) ([10.212.53.4]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2023 15:55:14 -0800 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin , Daniel Schaefer , Liming Gao , Jian J Wang , Sunil V L Subject: [PATCH 5/7] MdeModulePkg: Dxe: add RISCV64 to mMachineTypeInfo Date: Thu, 23 Feb 2023 17:54:52 -0600 Message-Id: <20230223235454.23556-6-andrei.warkentin@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230223235454.23556-1-andrei.warkentin@intel.com> References: <20230223235454.23556-1-andrei.warkentin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This fixes messages like: "Image type AARCH64 can't be loaded on UEFI system" Cc: Daniel Schaefer Cc: Liming Gao Cc: Jian J Wang Reviewed-by: Sunil V L Signed-off-by: Andrei Warkentin --- MdeModulePkg/Core/Dxe/Image/Image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Core/Dxe/Image/Image.c b/MdeModulePkg/Core/Dxe/Image/Image.c index 06cc6744b8c6..8704ebea9a7c 100644 --- a/MdeModulePkg/Core/Dxe/Image/Image.c +++ b/MdeModulePkg/Core/Dxe/Image/Image.c @@ -81,7 +81,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED MACHINE_TYPE_INFO mMachineTypeInfo[] = { { EFI_IMAGE_MACHINE_IA64, L"IA64" }, { EFI_IMAGE_MACHINE_X64, L"X64" }, { EFI_IMAGE_MACHINE_ARMTHUMB_MIXED, L"ARM" }, - { EFI_IMAGE_MACHINE_AARCH64, L"AARCH64" } + { EFI_IMAGE_MACHINE_AARCH64, L"AARCH64" }, + { EFI_IMAGE_MACHINE_RISCV64, L"RISCV64" }, }; UINT16 mDxeCoreImageMachineType = 0; -- 2.25.1