From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D3B8081C48 for ; Tue, 29 Nov 2016 23:22:46 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 29 Nov 2016 23:22:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,720,1473145200"; d="scan'208";a="792464383" Received: from jfan12-desk.ccr.corp.intel.com ([10.239.9.5]) by FMSMGA003.fm.intel.com with ESMTP; 29 Nov 2016 23:22:45 -0800 From: Jeff Fan To: edk2-devel@lists.01.org Date: Wed, 30 Nov 2016 15:22:40 +0800 Message-Id: <20161130072243.35268-1-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 Subject: [PATCH 0/3] mReservedVectors is not set X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2016 07:22:46 -0000 mReservedVectors is used by ArchSaveExceptionContext() and ArchRestoreExceptionContext() to support HOOK_AFTER capability. But it is not set to correct pointer. This is one regression issue when we add PeiExcpetionHandlerLib.inf. The fix is to add parameter ExceptionHandlerData for thoese 2 APIs and not to use mReservedVectors. Jeff Fan (3): UefiCpuPkg: Add ExceptionHandlerData for ArchSaveExceptionContext() UefiCpuPkg: Add ExceptionHandlerData for ArchRestoreExceptionContext() UefiCpuPkg/CpuExceptionHandlerLib: remove un-used mReservedVectors .../CpuExceptionHandlerLib/CpuExceptionCommon.c | 5 +- .../CpuExceptionHandlerLib/CpuExceptionCommon.h | 23 ++++----- .../Ia32/ArchExceptionHandler.c | 47 +++++++++++-------- .../CpuExceptionHandlerLib/PeiDxeSmmCpuException.c | 4 +- .../X64/ArchExceptionHandler.c | 54 +++++++++++++--------- 5 files changed, 76 insertions(+), 57 deletions(-) -- 2.9.3.windows.2