/*++ @file\r
Emu driver to produce CPU Architectural Protocol.\r
- \r
+\r
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
This program and the accompanying materials\r
if (TimerIndex != 0) {\r
return EFI_INVALID_PARAMETER;\r
}\r
- \r
+\r
*TimerValue = gEmuThunk->QueryPerformanceCounter ();\r
- \r
+\r
if (TimerPeriod != NULL) {\r
*TimerPeriod = mTimerPeriod;\r
- } \r
+ }\r
\r
return EFI_SUCCESS;\r
}\r
{\r
EFI_STATUS Status;\r
EFI_SMBIOS_HANDLE SmbiosHandle;\r
- \r
+\r
SmbiosHandle = 0;\r
Status = Smbios->Add (\r
Smbios,\r
// Locate Smbios protocol.\r
//\r
Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID **)&Smbios);\r
- \r
+\r
if (EFI_ERROR (Status)) {\r
return;\r
}\r
//\r
// Make handle chosen by smbios protocol.add automatically.\r
//\r
- SmbiosRecord->Hdr.Handle = 0; \r
+ SmbiosRecord->Hdr.Handle = 0;\r
//\r
// Processor version is the 1st string.\r
//\r
\r
/**\r
Callback function for idle events.\r
- \r
+\r
@param Event Event whose notification function is being invoked.\r
@param Context The pointer to the notification function's context,\r
which is implementation-dependent.\r
\r
//\r
// Retrieve the frequency of the performance counter in Hz.\r
- // \r
+ //\r
Frequency = gEmuThunk->QueryPerformanceFrequency ();\r
- \r
+\r
//\r
// Convert frequency in Hz to a clock period in femtoseconds.\r
//\r
mTimerPeriod = DivU64x64Remainder (1000000000000000ULL, Frequency, NULL);\r
\r
CpuUpdateSmbios ();\r
- \r
+\r
CpuMpServicesInit ();\r
- \r
+\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
TPL_NOTIFY,\r