From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.5439.1658476676550625421 for ; Fri, 22 Jul 2022 00:57:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=i2U53K6c; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658476676; x=1690012676; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+he0hIh/Do45riZrkZBgnOeCpO7a7RcdXYAxd7AU7mM=; b=i2U53K6cWa1Hk2LIjcik+I1G9si5fM1OY2DQA5WkIiHNZ3nvLBqqyBYO gnR9i2TGanzJq+hr1MgfxxBUsOr4n+yrCx9JjIj6IMULhIRUSFIIibake LHxv0DjpCdE+ddadFq0k1sq/RsbPjACCHzRdD+mMUAmSgv6QQZHOGiYh8 T+H1Bfnl/ir7fK9EyWjYABZ5kPDyDR3MJ8MloOIOiJh5mMpRwPRRNDJzX 1nb5RdGmksUIZGJ9w+Mcp2BulKShWTT+Jzw3TIvKESriFucHWyWei7BQl VVieHAgDeRtgQVDDVjMRU1J42AjTa3FAJbbk6DWo/zVYhXGICzLte3qkr A==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="351257831" X-IronPort-AV: E=Sophos;i="5.93,185,1654585200"; d="scan'208";a="351257831" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 00:57:56 -0700 X-IronPort-AV: E=Sophos;i="5.93,185,1654585200"; d="scan'208";a="626468567" Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.141]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2022 00:57:51 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Zhiguang Liu , Eric Dong , Ray Ni , Rahul Kumar , Leif Lindholm , Dandan Bi , Liming Gao , Jian J Wang , Ard Biesheuvel , Sami Mujawar Subject: [PATCH 0/2] Simplify InitializeSeparateExceptionStacks Date: Fri, 22 Jul 2022 15:57:35 +0800 Message-Id: <20220722075737.897-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The patch set is to hide the exception implementation details, so that caller don't need to know anything about IDT when separate stack for it. However, this patch set changes a library API, so I have to change multiple packages inside one patch. Otherwise, I can make sure every single commit can build and boot fine. If anyone has good idea to separate the first big patch, please tell me. Thanks in advance. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Leif Lindholm Cc: Dandan Bi Cc: Liming Gao Cc: Jian J Wang Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Zhiguang Liu Zhiguang Liu (2): UefiCpuPkg: Simplify InitializeSeparateExceptionStacks MdeModulePkg: Move CPU_EXCEPTION_INIT_DATA to UefiCpuPkg .../Library/ArmExceptionLib/ArmExceptionLib.c | 15 +- MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 4 +- .../Include/Library/CpuExceptionHandlerLib.h | 82 +-------- .../CpuExceptionHandlerLibNull.c | 15 +- UefiCpuPkg/CpuDxe/CpuMp.c | 157 +++------------- UefiCpuPkg/CpuDxe/CpuMp.h | 10 +- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 174 ++++-------------- UefiCpuPkg/CpuMpPei/CpuMpPei.h | 10 +- .../CpuExceptionCommon.h | 59 +++++- .../CpuExceptionHandlerLib/DxeException.c | 77 +++++--- .../Ia32/ArchExceptionHandler.c | 3 +- .../CpuExceptionHandlerLib/PeiCpuException.c | 62 ++++++- .../PeiCpuExceptionHandlerLib.inf | 4 +- .../SecPeiCpuException.c | 15 +- .../CpuExceptionHandlerLib/SmmException.c | 15 +- .../X64/ArchExceptionHandler.c | 3 +- 16 files changed, 289 insertions(+), 416 deletions(-) -- 2.26.2.windows.1