-/*++\r
+/**@file\r
\r
Copyright (c) 2006 - 2007, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
the CPU-specific setjump/long pair. Other services are not implemented\r
in this driver.\r
\r
---*/\r
+**/\r
\r
\r
#include "CpuDriver.h"\r
// TODO: This - add argument and description to function comment\r
// TODO: InitType - add argument and description to function comment\r
{\r
- CPU_ARCH_PROTOCOL_PRIVATE *Private;\r
-\r
- Private = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);\r
return EFI_UNSUPPORTED;\r
}\r
\r
// TODO: InterruptType - add argument and description to function comment\r
// TODO: InterruptHandler - add argument and description to function comment\r
{\r
- CPU_ARCH_PROTOCOL_PRIVATE *Private;\r
\r
//\r
// Do parameter checking for EFI spec conformance\r
//\r
// Do nothing for Nt32 emulation\r
//\r
- Private = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);\r
return EFI_UNSUPPORTED;\r
}\r
\r
// TODO: Attributes - add argument and description to function comment\r
// TODO: EFI_INVALID_PARAMETER - add return value to function comment\r
{\r
- CPU_ARCH_PROTOCOL_PRIVATE *Private;\r
-\r
//\r
// Check for invalid parameter for Spec conformance\r
//\r
//\r
// Do nothing for Nt32 emulation\r
//\r
- Private = CPU_ARCH_PROTOCOL_PRIVATE_DATA_FROM_THIS (This);\r
return EFI_UNSUPPORTED;\r
}\r
\r
//\r
// Locate DataHub protocol.\r
//\r
- Status = gBS->LocateProtocol (&gEfiDataHubProtocolGuid, NULL, &DataHub);\r
+ Status = gBS->LocateProtocol (&gEfiDataHubProtocolGuid, NULL, (VOID**)&DataHub);\r
if (EFI_ERROR (Status)) {\r
return;\r
}\r
//\r
// Initialize strings to HII database\r
//\r
- HiiLibAddPackages (1, &gEfiProcessorProducerGuid, NULL, &HiiHandle, CpuStrings);\r
- \r
+ HiiHandle = HiiAddPackages (\r
+ &gEfiProcessorProducerGuid,\r
+ NULL,\r
+ CpuStrings,\r
+ NULL\r
+ );\r
+ ASSERT (HiiHandle != NULL);\r
\r
CopyMem (RecordBuffer.Raw, &mCpuDataRecordHeader, HeaderSize);\r
\r