From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.1.69; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=vabhav.sharma@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0069.outbound.protection.outlook.com [104.47.1.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B265F21F2AF73; Thu, 28 Sep 2017 04:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=CxpAi8cvuuG/qt0La83Ob0tTOOXybasrCrfhdFZhY9U=; b=jsmx6gwcPSGfSemLLHeLp68ryiFBKwkX9f6Of/grv6i3uxIkNEjN2DVMkMv5oCTrC0gLCe3KUK7BGsX5cgtcE1ta4xYJ9Apduo/9PHgutBI4XEOuxH86+/1JbWkb/a1hICJTeQAkruv6OHrRhawa0bUciCRSM+pM+BU+Z6mQyVk= Received: from DB4PR04MB299.eurprd04.prod.outlook.com (10.141.239.21) by DB4PR04MB298.eurprd04.prod.outlook.com (10.141.239.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 11:23:03 +0000 Received: from DB4PR04MB299.eurprd04.prod.outlook.com ([fe80::e4b0:da81:40ba:c125]) by DB4PR04MB299.eurprd04.prod.outlook.com ([fe80::e4b0:da81:40ba:c125%18]) with mapi id 15.20.0077.016; Thu, 28 Sep 2017 11:23:03 +0000 From: Vabhav Sharma To: "edk2-devel@lists.01.org" , edk2-devel Thread-Topic: Clarification about InitializeCpuExceptionHandlers() and TGE bit in hcr_el2 Thread-Index: AdM4S5X4UH9Aw0uVRmO1LeyZaos3Ug== Date: Thu, 28 Sep 2017 11:23:03 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.88.169.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB4PR04MB298; 6:Hr5wTlG4ABrOWNR8vSjoffJlu7SLl+LYdVoLR51nLLu3GjTQvYc87QKxQqrmXt8BgcU9g37ZVy1TmnXCxB9hkmwSVUkT5wl3GHcBF3pzS090THVtDdIvd3p/DMT2cR1v07gAT8Ywx3wR0o1pC5ewvdEjywLlLIOHO3kwWA9c2Bi6PMHUNnQ2bxf/PKOXK0ehH4r7A3mKs+GSDpXkdoQA2VvFcy4SznLeBtIlu8Ci4Obu8JQOJ7SwUVXUzN0DuE+a18l4+q0yAKwNRC1ysLxOJuMOL91EnthQBkxAUlpKcOf3MzHcu2Dkjqfc7g8lqiZPPxaI801sU4RyAjOu0nAljA==; 5:Ier0RcQsJkYbqZrdR95UA+9NFCRK/8DwN02xWSd2Q35Eo5ydramyr94+PsvNu00VvHITbX5oPwbeLdFK4NIOZ3oTqO2j3E0NAWFseLTzuNZB/MnbZV2ZTTYO6YQQUlbBMa67eab/dRgLw7eCngMTIQ==; 24:A0eFnZ/1CP8VJuwcEQN5SY7wN0tZwMbSknwoAcoYzlk+OA+4ZdgbQCtnq2RYaTdpvN4JTSEPqeq9xb6zq9OlBUSTnM3S9dr02cPziwYQOIE=; 7:sJ5EBJItbYb7mxxkrP0hM+a79LR05TMfm6pVSpVkH+OA2tGCrGlD+uU/++eY5NrkGMTgKb+XXj9o9C0LCHrzNBocQXpL81UyqyVcC0gZRngkqyrUk6+GV2w63xHoWAQ3gi3ZdRoPZ0r4QlsU0H+GQxwHV7m+A7YokYsMWNssfafnTdXSBDxwaT7XUCj/9Zeq8nrRrwftNe8XCSJ7kcfS1yMYeEMnA6YB/7Xhqx4ga+Y= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 01dcbd2f-0dde-4f7b-1e3d-08d5066348d2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DB4PR04MB298; x-ms-traffictypediagnostic: DB4PR04MB298: x-exchange-antispam-report-test: UriScan:(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DB4PR04MB298; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB4PR04MB298; x-forefront-prvs: 0444EB1997 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(199003)(53754006)(189002)(81156014)(6506006)(7736002)(790700001)(25786009)(7696004)(102836003)(3846002)(86362001)(6116002)(8676002)(81166006)(33656002)(3660700001)(66066001)(2906002)(5660300001)(101416001)(74316002)(9326002)(106356001)(105586002)(8936002)(110136005)(54356999)(68736007)(478600001)(3280700002)(14454004)(55016002)(97736004)(50986999)(6436002)(99286003)(450100002)(189998001)(316002)(2900100001)(6306002)(5250100002)(54896002)(2501003)(9686003)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB298; H:DB4PR04MB299.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=vabhav.sharma@nxp.com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2017 11:23:03.4646 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB298 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Clarification about InitializeCpuExceptionHandlers() and TGE bit in hcr_el2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 11:19:52 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, I see that InitializeCpuExceptionHandlers() is called from DxeMain to take = over exception handlers and later from ArmCpuDxe. Is there any specific purpose to call it from two places during dxe phase? Additionally we are setting TGE bit three times in hcr_el2 during PrePei ph= ase(ArmPlatformPkg/PrePi/AArch64/ArchPrePi.c) and Twice in Dxe phase: dxemain(),ArmCpuDxe Please help to clarify or required to be fixed? Regards, Vabhav