X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=UefiCpuPkg%2FPiSmmCpuDxeSmm%2FSmmProfile.h;h=04a3dfb2e85764ea9dca99d83f1e105aea5812ef;hb=0d0a19cb14ba6867813f56a52cfc89545ad07f3a;hp=45484674589d1589ce10a3830640a072715aee41;hpb=529a5a860996b5e83941bab50a7b8604139264a1;p=mirror_edk2.git diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h index 4548467458..04a3dfb2e8 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h @@ -1,7 +1,7 @@ /** @file SMM profile header file. -Copyright (c) 2012 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -17,11 +17,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "SmmProfileInternal.h" -/// -/// MSR Register Index -/// -#define MSR_IA32_MISC_ENABLE 0x1A0 - // // External functions // @@ -101,15 +96,6 @@ CheckFeatureSupported ( VOID ); -/** - Enable XD feature. - -**/ -VOID -ActivateXd ( - VOID - ); - /** Update page table according to protected memory ranges and the 4KB-page mapped memory ranges. @@ -120,15 +106,21 @@ InitPaging ( ); /** - Check if XD and BTS features are supported by all processors. + Get CPU Index from APIC ID. **/ -VOID -CheckProcessorFeature ( +UINTN +GetCpuIndex ( VOID ); +// +// The flag indicates if execute-disable is supported by processor. +// extern BOOLEAN mXdSupported; +// +// The flag indicates if execute-disable is enabled on processor. +// extern BOOLEAN mXdEnabled; #endif // _SMM_PROFILE_H_