\r
#include "Performance.h"\r
\r
-VOID\r
-ClearDebugRegisters (\r
- VOID\r
- )\r
-{\r
- //\r
- // BugBug: We should not need to do this. We need to root cause this bug!!!!\r
- //\r
- AsmWriteDr0 (0);\r
- AsmWriteDr1 (0);\r
-}\r
\r
STATIC\r
VOID\r
\r
Done:\r
\r
- ClearDebugRegisters ();\r
-\r
mPerfHeader.Signiture = 0x66726550;\r
\r
//\r
\r
gRT->SetVariable (\r
L"PerfDataMemAddr",\r
- &gEfiGlobalVariableGuid,\r
+ &gEfiGenericPlatformVariableGuid,\r
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
sizeof (UINT32),\r
(VOID *) &mAcpiLowMemoryBase\r