From: "Duran, Leo" <leo.duran@amd.com>
To: "Gao, Liming" <liming.gao@intel.com>,
"Zhu, Yonghong" <yonghong.zhu@intel.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [PATCH] BaseTools/Source/C/GenFv/GenFvInternalLib.c
Date: Sun, 14 Aug 2016 15:05:55 +0000 [thread overview]
Message-ID: <DM5PR12MB1243666A1D87D74496A97402F9110@DM5PR12MB1243.namprd12.prod.outlook.com> (raw)
In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A1155EAC43@shsmsx102.ccr.corp.intel.com>
> -----Original Message-----
> From: Gao, Liming [mailto:liming.gao@intel.com]
> Sent: Friday, August 12, 2016 3:32 AM
> To: Duran, Leo <leo.duran@amd.com>; edk2-devel@lists.01.org
> Cc: Zhu, Yonghong <yonghong.zhu@intel.com>
> Subject: RE: [PATCH] BaseTools/Source/C/GenFv/GenFvInternalLib.c
>
> Duran:
> Reusing FvForceRebase flag is a good idea to resolve this issue. I agree your
> change. Reviewed-by: Liming Gao <liming.gao@intel.com>
>
[Duran, Leo]
Excellent, thanks!
Please advise on "next steps":
1) Do we need a reply from Yonghong Zhu?
2) When would it be reasonable to expect integration of this code into mainline?
Thanks again,
Leo.
> Thank
> Liming
> > -----Original Message-----
> > From: Leo Duran [mailto:leo.duran@amd.com]
> > Sent: Thursday, August 11, 2016 11:23 PM
> > To: edk2-devel@lists.01.org
> > Cc: Zhu, Yonghong <yonghong.zhu@intel.com>; Gao, Liming
> > <liming.gao@intel.com>; Leo Duran <leo.duran@amd.com>
> > Subject: [PATCH] BaseTools/Source/C/GenFv/GenFvInternalLib.c
> >
> > Account for rebase of FV section containing VTF file on IA32/IA64.
> > This supports cases where the reset vector may not be set at 0xFFFFFFF0.
> >
> > For example, FV section defined as:
> > [FV.FvSecPei]
> > FvBaseAddress = $(FV_BOOT_BASE)
> > FvForceRebase = TRUE
> >
> > Contributed-under: TianoCore Contribution Agreement 1.0
> > Signed-off-by: Leo Duran <leo.duran@amd.com>
> > ---
> > BaseTools/Source/C/GenFv/GenFvInternalLib.c | 10 ++++++----
> > 1 file changed, 6 insertions(+), 4 deletions(-)
> >
> > diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> > b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> > index 7c839e2..8c2827b 100644
> > --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> > +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
> > @@ -2770,11 +2770,13 @@ Returns:
> > //
> > // Update reset vector (SALE_ENTRY for IPF)
> > // Now for IA32 and IA64 platform, the fv which has bsf file must have
> the
> > - // EndAddress of 0xFFFFFFFF. Thus, only this type fv needs to update
> the
> > - // reset vector. If the PEI Core is found, the VTF file will probably get
> > - // corrupted by updating the entry point.
> > + // EndAddress of 0xFFFFFFFF (unless the section was rebased).
> > + // Thus, only this type fv needs to update the reset vector.
> > + // If the PEI Core is found, the VTF file will probably get
> > + // corrupted by updating the entry point.
> > //
> > - if ((mFvDataInfo.BaseAddress + mFvDataInfo.Size) ==
> > FV_IMAGES_TOP_ADDRESS) {
> > + if ((mFvDataInfo.ForceRebase == 1) ||
> > + (mFvDataInfo.BaseAddress + mFvDataInfo.Size) ==
> > FV_IMAGES_TOP_ADDRESS) {
> > Status = UpdateResetVector (&FvImageMemoryFile, &mFvDataInfo,
> > VtfFileImage);
> > if (EFI_ERROR(Status)) {
> > Error (NULL, 0, 3000, "Invalid", "Could not update the
> > reset vector.");
> > --
> > 1.9.1
next prev parent reply other threads:[~2016-08-14 15:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 15:23 [PATCH] BaseTools/Source/C/GenFv/GenFvInternalLib.c Leo Duran
2016-08-11 15:23 ` Leo Duran
2016-08-12 8:32 ` Gao, Liming
2016-08-14 15:05 ` Duran, Leo [this message]
2016-08-14 19:24 ` Ard Biesheuvel
2016-08-15 0:15 ` Zhu, Yonghong
2016-08-15 13:13 ` Duran, Leo
2016-08-15 15:16 ` Gao, Liming
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=DM5PR12MB1243666A1D87D74496A97402F9110@DM5PR12MB1243.namprd12.prod.outlook.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