From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rn-mailsvcp-ppex-lapp35.apple.com (rn-mailsvcp-ppex-lapp35.apple.com [17.179.253.44]) by mx.groups.io with SMTP id smtpd.web12.653.1649289949926881535 for ; Wed, 06 Apr 2022 17:05:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=rx7tipWL; spf=pass (domain: apple.com, ip: 17.179.253.44, mailfrom: afish@apple.com) Received: from pps.filterd (rn-mailsvcp-ppex-lapp35.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp35.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 237015Mb021055; Wed, 6 Apr 2022 17:05:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=OIB1UPGeClpjqINykyk9vVn5Wb99cEsUDjYPA+cWF8k=; b=rx7tipWLo3BOt12HUbA86GoXHw6yYV/YH+/4AFRDg7uN8xVR9RMIJJ/JoNvNjZ9vDw/u YRU+lUm5z/WeeB8By67N3Od1o0cgyhY5jt7tRTV+HGr9fmsoeRzYLK1bq5iGYxeUeuU7 9vIXqQv372UIOV6SnTJMFuRMQtu5u7F/cRhvJS7mGrtyAZiGLunckos5VSlT+8NLMMSX N4eqfkhGeachVJPX7oPwBxBddDLOdLsH540Wcp/FbKGP5IJG7Hl3eYePNyXwREUrZWy5 XG8QTOI0KEIHPu2bskZRNLurJk7IFLxyMvh2ZPonO8NIk6y04iKwZgnStuhpSmFqiy+V qg== Received: from rn-mailsvcp-mta-lapp04.rno.apple.com (rn-mailsvcp-mta-lapp04.rno.apple.com [10.225.203.152]) by rn-mailsvcp-ppex-lapp35.rno.apple.com with ESMTP id 3f6j168gvu-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 06 Apr 2022 17:05:48 -0700 Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.16.20220118 64bit (built Jan 18 2022)) with ESMTPS id <0R9Y00FKD09O6M50@rn-mailsvcp-mta-lapp04.rno.apple.com>; Wed, 06 Apr 2022 17:05:48 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.16.20220118 64bit (built Jan 18 2022)) id <0R9Y00000005CE00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Wed, 06 Apr 2022 17:05:48 -0700 (PDT) X-Va-A: X-Va-T-CD: ef31e1a95087e9c711fcd85c1c36f28f X-Va-E-CD: a84b7b27df8603fe66b7fd8eb4461d73 X-Va-R-CD: 33882a0a220d7e1197c7f89d8f5bf2db X-Va-CD: 0 X-Va-ID: c65dc0e0-88bb-4a08-8787-66c4481be661 X-V-A: X-V-T-CD: ef31e1a95087e9c711fcd85c1c36f28f X-V-E-CD: a84b7b27df8603fe66b7fd8eb4461d73 X-V-R-CD: 33882a0a220d7e1197c7f89d8f5bf2db X-V-CD: 0 X-V-ID: 31ea2516-f9fb-4229-9a25-5555c3aa6d38 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425,18.0.850 definitions=2022-04-06_13:2022-04-06,2022-04-06 signatures=0 Received: from smtpclient.apple (unknown [17.235.26.249]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.16.20220118 64bit (built Jan 18 2022)) with ESMTPSA id <0R9Y00KJJ09N4L00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Wed, 06 Apr 2022 17:05:48 -0700 (PDT) MIME-version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: [edk2-devel][PATCH v3 1/8] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit From: "Andrew Fish" In-reply-to: Date: Wed, 06 Apr 2022 17:05:46 -0700 Cc: "Kuo, Ted" , "Chiu, Chasel" , "Desimone, Nathaniel L" , "Zeng, Star" , "S, Ashraf Ali" Message-id: <584D9D92-ADCC-4DE0-A506-70363B642D0A@apple.com> References: To: devel@edk2.groups.io, ray.ni@intel.com X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425,18.0.850 definitions=2022-04-06_13:2022-04-06,2022-04-06 signatures=0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable > On Apr 6, 2022, at 4:57 PM, Ni, Ray wrote: >=20 >> -; UINT32 >> +; UINTN >> ; EFIAPI >> -; AsmReadEsp ( >> +; AsmReadStackPointer ( >> ; VOID >> ; ); >> ;-----------------------------------------------------------------------= ------- >> -global ASM_PFX(AsmReadEsp) >> -ASM_PFX(AsmReadEsp): >> +global ASM_PFX(AsmReadStackPointer) >> +ASM_PFX(AsmReadStackPointer): >> mov eax, esp >> ret >>=20 >=20 > I guess it's possible that bootloader sets up the stack above 4G. > If that's the case, above code doesn't work. >=20 >=20 Is there an issue with the SecSwitchStack too? Thanks, Andrew Fish >=20 >=20 >=20 >=20