From: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
To: "Yarlagadda, Satya P" <satya.p.yarlagadda@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Ma, Maurice" <maurice.ma@intel.com>,
"Yao, Jiewen" <jiewen.yao@intel.com>
Subject: Re: [PATCH] IntelFsp2Pkg: Add function to get FspInfoHeader before stack is ready
Date: Fri, 19 Aug 2016 23:20:17 +0000 [thread overview]
Message-ID: <4666AEFED60F8E4198B42BB01DCEABDF76EB5E38@ORSMSX113.amr.corp.intel.com> (raw)
In-Reply-To: <20160818052031.14576-1-satya.p.yarlagadda@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
> -----Original Message-----
> From: Yarlagadda, Satya P
> Sent: Wednesday, August 17, 2016 10:21 PM
> To: edk2-devel@lists.01.org
> Cc: Ma, Maurice <maurice.ma@intel.com>; Yao, Jiewen
> <jiewen.yao@intel.com>; Mudusuru, Giri P <giri.p.mudusuru@intel.com>
> Subject: [PATCH] IntelFsp2Pkg: Add function to get FspInfoHeader before stack
> is ready
>
> we need to locate the FSP Info Header before the stack is initialized to
> access the cfg region for any UPD. Hence adding the
> AsmGetFspInfoHeaderNoStack function to support it.
>
> Note: This function is there in IntelFspPkg but got removed in IntelFsp2Pkg
>
> Cc: Maurice Ma <maurice.ma@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Satya Yarlagadda <satya.p.yarlagadda@intel.com>
> ---
> IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm
> b/IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm
> index 43eac97..a848dcb 100644
> --- a/IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm
> +++ b/IntelFsp2Pkg/FspSecCore/Ia32/FspHelper.nasm
> @@ -14,6 +14,8 @@
> SECTION .text
>
> global ASM_PFX(FspInfoHeaderRelativeOff)
> +ASM_PFX(FspInfoHeaderRelativeOff):
> + DD 0x12345678 ; This value must be patched by the build script
>
> global ASM_PFX(AsmGetFspBaseAddress)
> ASM_PFX(AsmGetFspBaseAddress):
> @@ -29,6 +31,11 @@ ASM_PFX(NextInstruction):
> pop eax
> sub eax, ASM_PFX(NextInstruction)
> add eax, ASM_PFX(AsmGetFspInfoHeader)
> - DB 02Dh ; opcode of sub eax, imm32
> -ASM_PFX(FspInfoHeaderRelativeOff): DD 0x12345678 ; sub eax,
> FspInfoHeaderRelativeOff
> + sub eax, dword [ASM_PFX(FspInfoHeaderRelativeOff)]
> ret
> +
> +global ASM_PFX(AsmGetFspInfoHeaderNoStack)
> +ASM_PFX(AsmGetFspInfoHeaderNoStack):
> + mov eax, ASM_PFX(AsmGetFspInfoHeader)
> + sub eax, dword [ASM_PFX(FspInfoHeaderRelativeOff)]
> + jmp edi
> --
> 2.9.2.windows.1
next prev parent reply other threads:[~2016-08-19 23:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 5:20 [PATCH] IntelFsp2Pkg: Add function to get FspInfoHeader before stack is ready Satya Yarlagadda
2016-08-19 23:20 ` Mudusuru, Giri P [this message]
2016-08-22 8:19 ` Yao, Jiewen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4666AEFED60F8E4198B42BB01DCEABDF76EB5E38@ORSMSX113.amr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox