From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.577.1649289467495615772 for ; Wed, 06 Apr 2022 16:57:48 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=C7vHFb5g; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649289467; x=1680825467; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=PYS+TvZXfHULvAKHxULpF33fEFLEGE5On31w97n5whw=; b=C7vHFb5g/zkIVly3Ke57844XImkmANvfG13cLVSbGzLa+M//ErCuLHK+ 3so7LsKbb/BMeLkEva5cg4S/h3AF5Yu4Sn0SfOtBLn0V/YKZJIkrtLqk5 NRCycxMgGXF6SSJosAaCIzPeKbgrYacpLDj6ZpUswy1ZJeTz1ZBApLInO g6Vsg9/iYEmAxzw5i4xCZE0JeIfCBWzjZFpGxIceHPKS7hgk5jOIwCjUx 8N3elxdE2Rt7aQWNDWnsf5yWHq8ZBwAn+bsXtPTTM1EtMGX4N+6obPV3O 069mUhyoWY7jVcEIOTXNgG3lv+RCOLG0VZxCazpzLFLDeWGeCk5gLy2vg g==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="261180827" X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="261180827" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 16:57:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,240,1643702400"; d="scan'208";a="557158625" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga007.fm.intel.com with ESMTP; 06 Apr 2022 16:57:45 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 6 Apr 2022 16:57:45 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 6 Apr 2022 16:57:44 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 6 Apr 2022 16:57:44 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 6 Apr 2022 16:57:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I3KP6Cqy4Pw8j9IPBVOIKXg80dK+jRZVvIRPdmphbeUgp7u/c7tBWcs3gNa82NriMreylSI5qqgUQhtcE2oR5VZWgX0MnaTrFshUSA50dMhF/mtGW8dsUkP8f8o7h1hgu0+3+weGXBMp2UvkjTvYjMt3ajHoARU1dQZdcwe6L4/1Eo2oOVSN1bNf3owKVnjNoSlD0z2pGlQ0n/UahJm1m6jZu6XHjoj0zKKAHt+q+5jT1IPZPOkk70EW2qGqzXfQNp3dnJ28vc5zjJMBzI7s28mMSk1TFhKgNRejq2I6XCDhgAwdowkd0PQ6UEgK+aN8Zgf43cneQHQt4oIP1IIyMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FGonR6RHBpS4toOSWWENSERb5Ao/ZPFG2yVNrquNkiE=; b=Ry0npnDhgGZVE8vm1R6BCkBv/dniNn8yxiky/m1S3yw66TwPPtSDUXISPT1hR1E/vkZPExV3gEesJE21NrBIQLv7dsK56rzzHBikF6wfEUwW9rHrFfIVCkRduJLwroR/NqUCx58dS5FJ6N3kNLu5DAivnTCdO97887kMpxYBX1vRJ+w1p8fteGyjKd7Fibwj317rOf3QprGBwMiSYAjWbarH+biq/K5snyRA9jtdU+cpj5gKmzGqV3aFIb2xFhBUrpVHmMJAwgRj/Wt3YSI+zNS9Wf6CnN+PoypCBKZZIEg+dsP/Bu8tcIBNXAFF+0sV59smx2hrK0HwptqJYAy/GA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by CH0PR11MB5689.namprd11.prod.outlook.com (2603:10b6:610:ec::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.21; Wed, 6 Apr 2022 23:57:43 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::a88a:3f13:4d9:3127]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::a88a:3f13:4d9:3127%11]) with mapi id 15.20.5144.022; Wed, 6 Apr 2022 23:57:43 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Kuo, Ted" CC: "Chiu, Chasel" , "Desimone, Nathaniel L" , "Zeng, Star" , "S, Ashraf Ali" Subject: Re: [edk2-devel][PATCH v3 1/8] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit Thread-Topic: [edk2-devel][PATCH v3 1/8] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit Thread-Index: AQHYSdiufDBkue06YUC4g1fmaA1bHazjkE9g Date: Wed, 6 Apr 2022 23:57:43 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 489b04bc-f29f-4fb6-a1d9-08da18293dc7 x-ms-traffictypediagnostic: CH0PR11MB5689:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oxGg+L4qRQwj/wfhIIMomWr27E5h0yqUEPx9A4R435iVlzPgDKZtCNg1PP2/evG7Af7rXP8q3MhfDTEmRjMPDyGWZ/YFCVgDUUcUaqdj805BYdYcWQ8LAGugoZIGFQZ7tob+jE1117EbPH7nsgVDFJ6xBGmPPprge/8p3fSbLnHtBGNwItienF0PM+ws/T8yCWX0Ysvvb3WA/ZZe8uMUYFyvzX8TEsbzEZ0xBKd6wnIEL5mS3sBeuub6aMFZA5R8KIDshCBorin1r0aV9awZi7t5b4bYTv4p4rmkRFtpZyz025eDo/vv/hPstk2OkRK35d7Ig9aVUJZA3+7wT7jdpvDZa/q7COHQpsB6jrC2JQCEZKlOA8HnHeyoFJ9mZzCBzbFyficUQXJcrY6/yOdVLaZ/qYg09QiDVYgA423LoskfaIRZdw2HNBgr095fKetZDGtwtjB9VwoOHohTuHn0JRu3zjvwivCkY/mTb1JAcB1Gdts8M+lo1mrCFBYN1VQcna56OjyV+XecXcZlxfW6fZv2PYUcDSu47ibGoN2uIAPD6eseU9ELQbJN1KuiGkllcZgB3kLlxWdX4LGIaugFQDM9QQw134NzwcfEtELG0MKcuw28CmzXY0fMo6nQCy2qI0hVkeM5t+D7LZeOaG2m0fyHnQAYeg8KbrceEbXQu7oIyWqpF1KjOKa1giftiYX15FVitCXv+ns0UpCDwYREug== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(110136005)(6506007)(7696005)(33656002)(54906003)(6636002)(71200400001)(316002)(2906002)(4744005)(38100700002)(55016003)(86362001)(9686003)(107886003)(4326008)(8936002)(8676002)(76116006)(64756008)(5660300002)(66446008)(66476007)(186003)(26005)(122000001)(508600001)(38070700005)(66946007)(52536014)(82960400001)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?etcH2BkVe6Drx4of2xkQDkEJiLVPdxe0U9hgmnPfR7kSe00DitYRU9tDiw8M?= =?us-ascii?Q?cghoVpCiW6j3OQJroUK0fDgJrvy/52bei6tmkB53n6uiVvbsQ/W83yTHZKwD?= =?us-ascii?Q?nEVwBgG9aJDjtKS+lejPlTbFpH5OnncNNPkA+g8koneaMoAKnlYNqGQRDb8P?= =?us-ascii?Q?oTofAw3joVwMkTZfN3LRay0fzRl7hvcCYXd3PsBt/PtNwJt/OfrPO2Px1ULf?= =?us-ascii?Q?Dh93b3QUQDmmw5SVXyNhGzx+Y5w2u8XzYe0UX42vlNuBKmxs4DQxxvsDtX/R?= =?us-ascii?Q?i7Dco0pH8iXASKMCRl0LhzHJLrx2u447/qttI9NpmK8BYNPVMjsz68S2ArWb?= =?us-ascii?Q?VNqFr3Q4YTz/tqXdHGpJKcfjPr7WyxNWHJ4vD6AP2rvpiYfbOkvjpI3DRnLV?= =?us-ascii?Q?VCouB6wwZT31r5bidGlAQRdMW8LD6PgndRiMw/TgbA78eJr4MnfS/ObtGlhO?= =?us-ascii?Q?MVs5FcRGA88gWJprHNn9YJekwTrrdTAxjl38kiZ/6Q+kWj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JSXVOte64KkY3mOjfqwSUPa3Uqn5s5QdoROXXLhPWPH?= =?us-ascii?Q?aTxsjWXBB1wI1Fdhf9pPPW05NgJFrVhVvxlLkn1f7arwC3+PyaG9m/+W6UD/?= =?us-ascii?Q?4ugKKZLVYgEQUMLG/eA97h8lFBmMEjyMIarCsGbgHTy5qczkvq9H/ffFa9wF?= =?us-ascii?Q?DHOIDWelM5E1ELyKHOFFVloiDkIcv7C0OnIb15cEP7yt3DAnnSarYevxPe8D?= =?us-ascii?Q?vbSbWZ3pkA3YfuS6beTtZD0dBM+EMb0vW47uPza8dBTuhBdeMWBZTzEDIsSY?= =?us-ascii?Q?r2NZMXkC/S0h0lSP8vzoihQK4UudLwlw8Kt1aa6JY9YDcNbslKhYpP0jkOJQ?= =?us-ascii?Q?z1zCfpwOxA=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 489b04bc-f29f-4fb6-a1d9-08da18293dc7 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Apr 2022 23:57:43.4159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: r/l45dFfc9volq8pr+pSIxmAdkDZfeVtCn8DiCDBZ2hvvhj33QO0zZfCqMbpZrcspdYc/UT3dMnBLOaTWV7H2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5689 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -; 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 I guess it's possible that bootloader sets up the stack above 4G. If that's the case, above code doesn't work.