From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch] IntelFsp2WrapperPkg: Update BaseFspWrapperApiLib to pass XCODE5 build
Date: Thu, 18 Jan 2018 06:14:01 +0000 [thread overview]
Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA810BD@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1516243487-3992-1-git-send-email-liming.gao@intel.com>
Reviewed-by: Jiewen.yao@intel.com
> -----Original Message-----
> From: Gao, Liming
> Sent: Thursday, January 18, 2018 10:45 AM
> To: edk2-devel@lists.01.org
> Cc: Yao, Jiewen <jiewen.yao@intel.com>
> Subject: [Patch] IntelFsp2WrapperPkg: Update BaseFspWrapperApiLib to pass
> XCODE5 build
>
> XCODE5 doesn't support absolute addressing in the assembly code.
> This change uses lea instruction to get the address.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> ---
> .../Library/BaseFspWrapperApiLib/X64/Thunk64To32.nasm | 10
> +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git
> a/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nas
> m
> b/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nas
> m
> index bcc6d70..a6ad6cf 100644
> ---
> a/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nas
> m
> +++
> b/IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/X64/Thunk64To32.nas
> m
> @@ -1,5 +1,5 @@
> ;
> -; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
> +; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
> ; This program and the accompanying materials
> ; are licensed and made available under the terms and conditions of the BSD
> License
> ; which accompanies this distribution. The full text of the license may be found
> at
> @@ -81,7 +81,7 @@ ASM_PFX(AsmExecute32BitCode):
> ;
> mov rax, dword 0x10 ; load long mode selector
> shl rax, 32
> - mov r9, ReloadCS ;Assume the ReloadCS is under 4G
> + lea r9, [ReloadCS] ;Assume the ReloadCS is under 4G
> or rax, r9
> push rax
> ;
> @@ -95,7 +95,7 @@ ASM_PFX(AsmExecute32BitCode):
> ; save the 32-bit function entry and the return address into stack which will
> be
> ; retrieve in compatibility mode.
> ;
> - mov rax, ReturnBack ;Assume the ReloadCS is under 4G
> + lea rax, [ReturnBack] ;Assume the ReloadCS is under 4G
> shl rax, 32
> or rax, rcx
> push rax
> @@ -110,7 +110,7 @@ ASM_PFX(AsmExecute32BitCode):
> ;
> mov rcx, dword 0x8 ; load compatible mode selector
> shl rcx, 32
> - mov rdx, Compatible ; assume address < 4G
> + lea rdx, [Compatible] ; assume address < 4G
> or rcx, rdx
> push rcx
> retf
> @@ -208,7 +208,7 @@ ReloadCS:
> ;
> pop r9 ; get CS
> shl r9, 32 ; rcx[32..47] <- Cs
> - mov rcx, .0
> + lea rcx, [.0]
> or rcx, r9
> push rcx
> retf
> --
> 2.8.0.windows.1
prev parent reply other threads:[~2018-01-18 6:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 2:44 [Patch] IntelFsp2WrapperPkg: Update BaseFspWrapperApiLib to pass XCODE5 build Liming Gao
2018-01-18 6:14 ` Yao, Jiewen [this message]
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=74D8A39837DF1E4DA445A8C0B3885C503AA810BD@shsmsx102.ccr.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