\r
#include "SmmProfileInternal.h"\r
\r
-///\r
-/// MSR Register Index\r
-///\r
-#define MSR_IA32_MISC_ENABLE 0x1A0\r
-#define B_XD_DISABLE_BIT BIT34\r
-\r
//\r
// External functions\r
//\r
/**\r
Check if XD feature is supported by a processor.\r
\r
- @param[in,out] Buffer The pointer to private data buffer.\r
-\r
**/\r
VOID\r
-EFIAPI\r
CheckFeatureSupported (\r
- IN OUT VOID *Buffer\r
- );\r
-\r
-/**\r
- Enable XD feature.\r
-\r
-**/\r
-VOID\r
-ActivateXd (\r
VOID\r
);\r
\r
);\r
\r
/**\r
- Check if XD and BTS features are supported by all processors.\r
+ Get CPU Index from APIC ID.\r
\r
**/\r
-VOID\r
-CheckProcessorFeature (\r
+UINTN\r
+GetCpuIndex (\r
VOID\r
);\r
\r
+//\r
+// The flag indicates if execute-disable is supported by processor.\r
+//\r
extern BOOLEAN mXdSupported;\r
+//\r
+// The flag indicates if execute-disable is enabled on processor.\r
+//\r
extern BOOLEAN mXdEnabled;\r
\r
#endif // _SMM_PROFILE_H_\r