From nobody Sat Oct 5 23:04:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+101307+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101307+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1679035643; cv=none; d=zohomail.com; s=zohoarc; b=N0kWYDdmUQ5z+cLyTQyljvbUpG8UIAr/4/fWk9i9m8fTO/Ww0/MOJ5TJRmN8iX3dJ7rRnmGZ9o+F4F2xpu8Ykyii4PgGZgM9kleqesycSlf0/JdWQOXc/cP99OIURJRmmIoD9NzRKQg8o6m0tZsTiw3q+a/kfnRv8sgu0x7hwNk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679035643; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=m9Eh3F7kCqx/37jmxE0OuUZdI6DpTvp7KXdpdOUKGJE=; b=F7BYSt1gTuDxzjjZmFNA8xvEJuGiGKhBP3d23Ofq1MTO6aGU04Rjjf3E6X90Q4gvsWP/ld7B5wb+V5gygoNpccAud9SX2xZDxgU3IYsY4s1Klz17mdflucip1y06VHmu2wt5BqEQ44Nl7xP2BveitNlpj7SkufE5L5ak/dKVh1w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101307+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1679035643928965.1236992583313; Thu, 16 Mar 2023 23:47:23 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id hbwcYY1788612xxlUSKyJEZu; Thu, 16 Mar 2023 23:47:23 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.13572.1679035642841190072 for ; Thu, 16 Mar 2023 23:47:23 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="339736226" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="339736226" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 23:47:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10651"; a="657453702" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="657453702" X-Received: from cchiu4-mobl.gar.corp.intel.com ([10.212.219.177]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2023 23:47:13 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Star Zeng Subject: [edk2-devel] [PATCH] IntelFsp2Pkg: Fix NASM X64 build warnings. Date: Thu, 16 Mar 2023 23:46:57 -0700 Message-Id: <20230317064657.1082-1-chasel.chiu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,chasel.chiu@intel.com X-Gm-Message-State: YUQPR5h4PHV3rVji36FMXMP5x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679035643; bh=buhdd3am/m+LWHtck8qRSulJD4Q6+EQKFooah6nnKtA=; h=Cc:Date:From:Reply-To:Subject:To; b=hUkVPmtS2epRu2m1a8uV2thVwt09u5hUiARg3J/Z8tN81hOFuNgbB0TuzeIeMyiUbKU 0Fd+tXeKtf0gFRZVdGNsWKG6VVGcjeQCN/Ad0t5b5U8zkcLDroYLIbH0Z7yzfoJusn+on MvQbXmZPoaUnVc+H9KC96IrChsEhzNnheDE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679035646061100002 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4377 Fix below warnings generated by NASM X64 build: /X64/FspHelper.iii:26: warning: signed dword value exceeds bounds /X64/FspHelper.iii:35: warning: signed dword value exceeds bounds /X64/FspApiEntryT.iii:320: warning: dword data exceeds bounds Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Chasel Chiu --- IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm | 2 +- IntelFsp2Pkg/FspSecCore/X64/FspHelper.nasm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm b/IntelFsp2Pkg/F= spSecCore/X64/FspApiEntryT.nasm index cdebe90fab..4a5554dd5f 100644 --- a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm +++ b/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm @@ -317,7 +317,7 @@ Done: xor eax, eax cmp edx, 0 jnz Exit2 - mov eax, 0800000000000000Eh + mov rax, 0800000000000000Eh =20 Exit2: jmp rbp diff --git a/IntelFsp2Pkg/FspSecCore/X64/FspHelper.nasm b/IntelFsp2Pkg/FspS= ecCore/X64/FspHelper.nasm index 71624a3aad..ec9140b73c 100644 --- a/IntelFsp2Pkg/FspSecCore/X64/FspHelper.nasm +++ b/IntelFsp2Pkg/FspSecCore/X64/FspHelper.nasm @@ -23,7 +23,7 @@ ASM_PFX(AsmGetFspInfoHeader): global ASM_PFX(FspInfoHeaderRelativeOff) ASM_PFX(FspInfoHeaderRelativeOff): DD 0x12345678 ; This value must be patched by the buil= d script - and rax, 0xffffffff + mov eax, eax ; equal to and rax, 0xFFFFFFFF ret =20 global ASM_PFX(AsmGetFspInfoHeaderNoStack) @@ -32,5 +32,5 @@ ASM_PFX(AsmGetFspInfoHeaderNoStack): lea rcx, [ASM_PFX(FspInfoHeaderRelativeOff)] mov ecx, [rcx] sub rax, rcx - and rax, 0xffffffff + mov eax, eax ; equal to and rax, 0xFFFFFFFF jmp rdi --=20 2.35.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#101307): https://edk2.groups.io/g/devel/message/101307 Mute This Topic: https://groups.io/mt/97667924/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-