From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web11.25557.1679073665728174314 for ; Fri, 17 Mar 2023 10:21:06 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=QUqdFUFh; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: chasel.chiu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679073665; x=1710609665; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=94Lj4bVyjjU1DLbzZEW+G+z8W1UkmohfIDAvieqBkoU=; b=QUqdFUFhKnvBjZxckFmZCMXchyQJ6ZMncgKFuvjqN46YvOvB0xGRa/R7 lOtRSHhZz+wUXmo18KJC02R1Fp6BYRtw6nZ3EHm5AHaqCSJ5wegHk45/v 7tRW/acnM6tW/uRVk9+EL7ON9aPx+tUfUtA+SDPGi3/mDhsHLxusenHS5 HCVV0tK8xGzgSbNvOE0sOBGwtyXhNWNRL3cp91AT3e22mJpJe4UFwxT0C hEd9BADRJGK3c8fsNW5aNOMqSkuc4OpmgZ7L7fZXTrwjjgPk70zlchwq9 NL1rACTjjaKG1NuSINR9qdui3PEotXh9rQ/YaeDvVDpwPW89Q50xs97N9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10652"; a="337019654" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="337019654" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2023 10:21:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10652"; a="744618402" X-IronPort-AV: E=Sophos;i="5.98,268,1673942400"; d="scan'208";a="744618402" Received: from cchiu4-mobl.gar.corp.intel.com ([10.252.136.175]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2023 10:21:02 -0700 From: "Chiu, Chasel" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Star Zeng Subject: [PATCH v2] IntelFsp2Pkg: Fix NASM X64 build warnings. Date: Fri, 17 Mar 2023 10:20:50 -0700 Message-Id: <20230317172050.1228-1-chasel.chiu@intel.com> X-Mailer: git-send-email 2.35.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 | 4 ++-- IntelFsp2Pkg/FspSecCore/X64/FspHelper.nasm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm b/IntelFsp2Pkg/F= spSecCore/X64/FspApiEntryT.nasm index cdebe90fab..56d6abaea6 100644 --- a/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm +++ b/IntelFsp2Pkg/FspSecCore/X64/FspApiEntryT.nasm @@ -317,7 +317,7 @@ Done: xor eax, eax=0D cmp edx, 0=0D jnz Exit2=0D - mov eax, 0800000000000000Eh=0D + mov rax, 0800000000000000Eh=0D =0D Exit2:=0D jmp rbp=0D @@ -464,7 +464,7 @@ ParamValid: ; Sec Platform Init=0D ;=0D CALL_YMM ASM_PFX(SecPlatformInit)=0D - cmp eax, 0=0D + cmp rax, 0=0D jnz TempRamInitExit=0D =0D ; Load microcode=0D 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)=0D ASM_PFX(FspInfoHeaderRelativeOff):=0D DD 0x12345678 ; This value must be patched by the buil= d script=0D - and rax, 0xffffffff=0D + mov eax, eax ; equal to and rax, 0xFFFFFFFF=0D ret=0D =0D global ASM_PFX(AsmGetFspInfoHeaderNoStack)=0D @@ -32,5 +32,5 @@ ASM_PFX(AsmGetFspInfoHeaderNoStack): lea rcx, [ASM_PFX(FspInfoHeaderRelativeOff)]=0D mov ecx, [rcx]=0D sub rax, rcx=0D - and rax, 0xffffffff=0D + mov eax, eax ; equal to and rax, 0xFFFFFFFF=0D jmp rdi=0D --=20 2.35.0.windows.1