From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.9207.1653056161299558400 for ; Fri, 20 May 2022 07:16:01 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=UTIH2utT; spf=pass (domain: intel.com, ip: 134.134.136.31, 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=1653056161; x=1684592161; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=cw2eBPOg6QrFw0XlsjaIZhjqybtylJ/EWYksNXe55dY=; b=UTIH2utTSTFrZ/rutr9JWNw9NSf3DZjtNB30UE1gYvwanZbo/bKSi3nA uuwmvEi9UnmmGvFrLoF1Zyg+FMG0091RXELgoYbWFJWeq4Rfj04Mm0OQw 9xO22oKSa0ZtXEDbMbGU3FXW0lZZEeTHyATWilNm4yF2LTIE9KLG3QgjK 5S5kDRc7g12l5JUnXRmNNjDPhaWYBGazucrREfjszHuH3C7zwNbsRQZm9 8i57+9AMIenHaPHJm5F/uo8qI1TVvTi6FFu6jWk1+IfDUdvCzZpP2xJ3R toXJ2SujO46V+SnAQEjI7VodefBWxt2RJB5VPpB1ur8ziJJeoQLOk2Iys g==; X-IronPort-AV: E=McAfee;i="6400,9594,10353"; a="333243090" X-IronPort-AV: E=Sophos;i="5.91,239,1647327600"; d="scan'208";a="333243090" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 07:15:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,239,1647327600"; d="scan'208";a="743512486" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.183.102]) by orsmga005.jf.intel.com with ESMTP; 20 May 2022 07:15:55 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH 0/5] Code refactoring in CpuExceptionHandlerLib Date: Fri, 20 May 2022 22:15:44 +0800 Message-Id: <20220520141549.108-1-ray.ni@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Ray Ni (5): CpuException: Avoid allocating code pages for DXE instance CpuException: Init global variables in-place CpuException: Avoid allocating page but using global variables CpuException: Remove InitializeCpuInterruptHandlers CpuException: Add InitializeSeparateExceptionStacks MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 2 +- .../Include/Library/CpuExceptionHandlerLib.h | 52 +---- .../CpuExceptionHandlerLibNull.c | 57 +---- UefiCpuPkg/CpuDxe/CpuDxe.c | 33 ++- UefiCpuPkg/CpuDxe/CpuMp.c | 6 +- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 4 +- .../CpuExceptionHandlerLib/DxeException.c | 218 ++++-------------- .../Ia32/ExceptionHandlerAsm.nasm | 4 +- .../CpuExceptionHandlerLib/PeiCpuException.c | 112 +-------- .../PeiDxeSmmCpuException.c | 19 +- .../SecPeiCpuException.c | 58 +---- .../CpuExceptionHandlerLib/SmmException.c | 72 ++---- .../X64/ExceptionHandlerAsm.nasm | 2 + .../X64/Xcode5ExceptionHandlerAsm.nasm | 9 +- 14 files changed, 149 insertions(+), 499 deletions(-) -- 2.35.1.windows.2