1. Remove #ifdef _MSC_EXTENSION_ from all source files
2. Remove #ifdef _GCC_ from all resource files 3. Remove #if 0 from all resource files 4. Remove #ifdef MDE_CPU_IPF and #ifdef MDE_CPU_EBC 5. Remove #progam from Decode.c 6. Remove #ifdef TIANO_EXTENSION_FLAG from source files 7. Remove #ifdef SUPPORT_IPV6, since code base doesn't support IPV6 at all. 8. Remove #ifdef SpecialNowaitVersion from pxe_bc_mtftp.c, since it's only used for test. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2470 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -338,14 +338,10 @@ Returns:
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Force Interrupt line to "Unknown" or "No Connection"
|
// Force Interrupt line to "Unknown" or "No Connection"
|
||||||
// based on the PCI spec, the Interrupt line for x86 should be set as 0xFF for unknown.
|
|
||||||
//
|
//
|
||||||
PciIo = &(PciIoDevice->PciIo);
|
PciIo = &(PciIoDevice->PciIo);
|
||||||
#ifndef MDE_CPU_IPF
|
|
||||||
Data8 = PCI_INT_LINE_UNKNOWN;
|
Data8 = PCI_INT_LINE_UNKNOWN;
|
||||||
#else
|
|
||||||
Data8 = 0;
|
|
||||||
#endif
|
|
||||||
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);
|
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x3C, 1, &Data8);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module name:
|
Module name:
|
||||||
decode.c
|
decode.c
|
||||||
@ -21,16 +21,6 @@ Revision history:
|
|||||||
// TODO: fix comment to add: Module Name: DECODE.C
|
// TODO: fix comment to add: Module Name: DECODE.C
|
||||||
#include "Undi32.h"
|
#include "Undi32.h"
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
|
|
||||||
// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
|
|
||||||
// does not recognize this pragma.
|
|
||||||
//
|
|
||||||
#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
|
|
||||||
#pragma data_seg("rtdata")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global variables defined in this file
|
// Global variables defined in this file
|
||||||
//
|
//
|
||||||
@ -1339,7 +1329,7 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
AdapterInfo = &(UNDI32DeviceList[CdbPtr->IFnum]->NicInfo);
|
AdapterInfo = &(UNDI32DeviceList[CdbPtr->IFnum]->NicInfo);
|
||||||
|
|
||||||
//
|
//
|
||||||
// entering from older entry point
|
// entering from older entry point
|
||||||
//
|
//
|
||||||
@ -1655,11 +1645,3 @@ Returns:
|
|||||||
PxePtr->Fudge = (UINT8) (PxePtr->Fudge - ChkSum ((VOID *) PxePtr, PxePtr->Len));
|
PxePtr->Fudge = (UINT8) (PxePtr->Fudge - ChkSum ((VOID *) PxePtr, PxePtr->Len));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
|
|
||||||
// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
|
|
||||||
// does not recognize this pragma.
|
|
||||||
//
|
|
||||||
#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
|
|
||||||
#pragma data_seg()
|
|
||||||
#endif
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
|
|
||||||
@ -20,11 +20,6 @@ Abstract:
|
|||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
|
|
||||||
#ifdef TIANO_EXTENSION_FLAG
|
|
||||||
EFI_GUID UnknownDeviceGuid = UNKNOWN_DEVICE_GUID;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EFI_GUID mEfiUnixThunkProtocolGuid = EFI_UNIX_THUNK_PROTOCOL_GUID;
|
EFI_GUID mEfiUnixThunkProtocolGuid = EFI_UNIX_THUNK_PROTOCOL_GUID;
|
||||||
EFI_GUID mEfiUnixUgaGuid = EFI_UNIX_UGA_GUID;
|
EFI_GUID mEfiUnixUgaGuid = EFI_UNIX_UGA_GUID;
|
||||||
EFI_GUID mEfiMsgPcAnsiGuid = DEVICE_PATH_MESSAGING_PC_ANSI;
|
EFI_GUID mEfiMsgPcAnsiGuid = DEVICE_PATH_MESSAGING_PC_ANSI;
|
||||||
@ -90,19 +85,19 @@ CatPrint (
|
|||||||
|
|
||||||
Routine Description:
|
Routine Description:
|
||||||
|
|
||||||
Concatenates a formatted unicode string to allocated pool.
|
Concatenates a formatted unicode string to allocated pool.
|
||||||
The caller must free the resulting buffer.
|
The caller must free the resulting buffer.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
Str - Tracks the allocated pool, size in use, and
|
Str - Tracks the allocated pool, size in use, and
|
||||||
amount of pool allocated.
|
amount of pool allocated.
|
||||||
|
|
||||||
fmt - The format string
|
fmt - The format string
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
Allocated buffer with the formatted string printed in it.
|
Allocated buffer with the formatted string printed in it.
|
||||||
The caller must free the allocated buffer. The buffer
|
The caller must free the allocated buffer. The buffer
|
||||||
allocation is not packed.
|
allocation is not packed.
|
||||||
|
|
||||||
@ -161,7 +156,7 @@ Arguments:
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
If the memory for the device path is successfully allocated, then a
|
If the memory for the device path is successfully allocated, then a
|
||||||
pointer to the new device path is returned. Otherwise, NULL is returned.
|
pointer to the new device path is returned. Otherwise, NULL is returned.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
@ -998,7 +993,7 @@ LibDuplicateDevicePathInstance (
|
|||||||
|
|
||||||
Routine Description:
|
Routine Description:
|
||||||
|
|
||||||
Function creates a device path data structure that identically matches the
|
Function creates a device path data structure that identically matches the
|
||||||
device path passed in.
|
device path passed in.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
@ -1007,7 +1002,7 @@ Arguments:
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
The new copy of DevPath is created to identically match the input.
|
The new copy of DevPath is created to identically match the input.
|
||||||
Otherwise, NULL is returned.
|
Otherwise, NULL is returned.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
@ -40,6 +40,9 @@
|
|||||||
<LibraryClass Usage="ALWAYS_CONSUMED">
|
<LibraryClass Usage="ALWAYS_CONSUMED">
|
||||||
<Keyword>BaseMemoryLib</Keyword>
|
<Keyword>BaseMemoryLib</Keyword>
|
||||||
</LibraryClass>
|
</LibraryClass>
|
||||||
|
<LibraryClass Usage="ALWAYS_CONSUMED">
|
||||||
|
<Keyword>MemoryAllocationLib</Keyword>
|
||||||
|
</LibraryClass>
|
||||||
<LibraryClass Usage="ALWAYS_CONSUMED">
|
<LibraryClass Usage="ALWAYS_CONSUMED">
|
||||||
<Keyword>UefiBootServicesTableLib</Keyword>
|
<Keyword>UefiBootServicesTableLib</Keyword>
|
||||||
</LibraryClass>
|
</LibraryClass>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ Arguments:
|
|||||||
CapsuleHeaderArray A array of pointers to capsule headers passed in
|
CapsuleHeaderArray A array of pointers to capsule headers passed in
|
||||||
CapsuleCount The number of capsule
|
CapsuleCount The number of capsule
|
||||||
ScatterGatherList Physical address of datablock list points to capsule
|
ScatterGatherList Physical address of datablock list points to capsule
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
||||||
EFI STATUS
|
EFI STATUS
|
||||||
@ -51,8 +51,8 @@ Returns:
|
|||||||
not set, the capsule has been successfully processed by the firmware.
|
not set, the capsule has been successfully processed by the firmware.
|
||||||
If it set, the ScattlerGatherList is successfully to be set.
|
If it set, the ScattlerGatherList is successfully to be set.
|
||||||
EFI_INVALID_PARAMETER CapsuleCount is less than 1,CapsuleGuid is not supported.
|
EFI_INVALID_PARAMETER CapsuleCount is less than 1,CapsuleGuid is not supported.
|
||||||
EFI_DEVICE_ERROR Failed to SetVariable or AllocatePool or ProcessFirmwareVolume.
|
EFI_DEVICE_ERROR Failed to SetVariable or AllocatePool or ProcessFirmwareVolume.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
UINTN CapsuleSize;
|
UINTN CapsuleSize;
|
||||||
@ -76,17 +76,17 @@ Returns:
|
|||||||
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {
|
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {
|
||||||
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
||||||
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {
|
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {
|
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {
|
||||||
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {
|
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//Assume that capsules have the same flags on reseting or not.
|
//Assume that capsules have the same flags on reseting or not.
|
||||||
//
|
//
|
||||||
CapsuleHeader = CapsuleHeaderArray[0];
|
CapsuleHeader = CapsuleHeaderArray[0];
|
||||||
|
|
||||||
@ -97,28 +97,28 @@ Returns:
|
|||||||
if (!FeaturePcdGet(PcdSupportUpdateCapsuleRest)) {
|
if (!FeaturePcdGet(PcdSupportUpdateCapsuleRest)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ScatterGatherList == 0) {
|
if (ScatterGatherList == 0) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
} else {
|
} else {
|
||||||
Status = EfiSetVariable (
|
Status = EfiSetVariable (
|
||||||
EFI_CAPSULE_VARIABLE_NAME,
|
EFI_CAPSULE_VARIABLE_NAME,
|
||||||
&gEfiCapsuleVendorGuid,
|
&gEfiCapsuleVendorGuid,
|
||||||
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,
|
EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,
|
||||||
sizeof (UINTN),
|
sizeof (UINTN),
|
||||||
(VOID *) &ScatterGatherList
|
(VOID *) &ScatterGatherList
|
||||||
);
|
);
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//The rest occurs in the condition of non-reset mode
|
//The rest occurs in the condition of non-reset mode
|
||||||
//
|
//
|
||||||
if (EfiAtRuntime ()) {
|
if (EfiAtRuntime ()) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,34 +128,31 @@ Returns:
|
|||||||
for (ArrayNumber = 0; ArrayNumber < CapsuleCount ; ArrayNumber++) {
|
for (ArrayNumber = 0; ArrayNumber < CapsuleCount ; ArrayNumber++) {
|
||||||
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
||||||
CapsuleSize = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize;
|
CapsuleSize = CapsuleHeader->CapsuleImageSize - CapsuleHeader->HeaderSize;
|
||||||
Status = gBS->AllocatePool (EfiBootServicesData, CapsuleSize, &BufferPtr);
|
|
||||||
if (Status != EFI_SUCCESS) {
|
BufferPtr = AllocatePool (CapsuleSize);
|
||||||
goto Done;
|
if (BufferPtr == NULL) {
|
||||||
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
gBS->CopyMem (BufferPtr, (UINT8*)CapsuleHeader+ CapsuleHeader->HeaderSize, CapsuleSize);
|
|
||||||
|
CopyMem (BufferPtr, (UINT8*)CapsuleHeader+ CapsuleHeader->HeaderSize, CapsuleSize);
|
||||||
|
|
||||||
//
|
//
|
||||||
//Call DXE service ProcessFirmwareVolume to process immediatelly
|
//Call DXE service ProcessFirmwareVolume to process immediatelly
|
||||||
//
|
//
|
||||||
Status = gDS->ProcessFirmwareVolume (BufferPtr, CapsuleSize, &FvHandle);
|
Status = gDS->ProcessFirmwareVolume (BufferPtr, CapsuleSize, &FvHandle);
|
||||||
if (Status != EFI_SUCCESS) {
|
if (Status != EFI_SUCCESS) {
|
||||||
gBS->FreePool (BufferPtr);
|
FreePool (BufferPtr);
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
gDS->Dispatch ();
|
gDS->Dispatch ();
|
||||||
gBS->FreePool (BufferPtr);
|
FreePool (BufferPtr);
|
||||||
}
|
}
|
||||||
return EFI_SUCCESS;
|
|
||||||
|
|
||||||
Done:
|
return EFI_SUCCESS;
|
||||||
if (BufferPtr != NULL) {
|
|
||||||
gBS->FreePool (BufferPtr);
|
|
||||||
}
|
|
||||||
return EFI_DEVICE_ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
QueryCapsuleCapabilities (
|
QueryCapsuleCapabilities (
|
||||||
@ -196,10 +193,10 @@ Returns:
|
|||||||
|
|
||||||
if ((MaxiumCapsuleSize == NULL) ||(ResetType == NULL)) {
|
if ((MaxiumCapsuleSize == NULL) ||(ResetType == NULL)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
CapsuleHeader = NULL;
|
CapsuleHeader = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
//Compare GUIDs with EFI_CAPSULE_GUID, if capsule header contains CAPSULE_FLAGS_PERSIST_ACROSS_RESET
|
//Compare GUIDs with EFI_CAPSULE_GUID, if capsule header contains CAPSULE_FLAGS_PERSIST_ACROSS_RESET
|
||||||
//and CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flags,whatever the GUID is ,the service supports.
|
//and CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE flags,whatever the GUID is ,the service supports.
|
||||||
@ -207,19 +204,19 @@ Returns:
|
|||||||
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {
|
for (ArrayNumber = 0; ArrayNumber < CapsuleCount; ArrayNumber++) {
|
||||||
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
CapsuleHeader = CapsuleHeaderArray[ArrayNumber];
|
||||||
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {
|
if ((CapsuleHeader->Flags & (CAPSULE_FLAGS_PERSIST_ACROSS_RESET | CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE)) == CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {
|
if (!CompareGuid (&CapsuleHeader->CapsuleGuid, &mEfiCapsuleHeaderGuid)) {
|
||||||
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {
|
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE) == 0) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
//Assume that capsules have the same flags on reseting or not.
|
//Assume that capsules have the same flags on reseting or not.
|
||||||
//
|
//
|
||||||
CapsuleHeader = CapsuleHeaderArray[0];
|
CapsuleHeader = CapsuleHeaderArray[0];
|
||||||
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) != 0) {
|
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) != 0) {
|
||||||
//
|
//
|
||||||
//Check if the platform supports update capsule across a system reset
|
//Check if the platform supports update capsule across a system reset
|
||||||
@ -228,11 +225,11 @@ Returns:
|
|||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
*ResetType = EfiResetWarm;
|
*ResetType = EfiResetWarm;
|
||||||
*MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizePopulateCapsule);
|
*MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizePopulateCapsule);
|
||||||
} else {
|
} else {
|
||||||
*ResetType = EfiResetCold;
|
*ResetType = EfiResetCold;
|
||||||
*MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizeNonPopulateCapsule);
|
*MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizeNonPopulateCapsule);
|
||||||
}
|
}
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
bc.h
|
bc.h
|
||||||
@ -39,9 +39,9 @@ Abstract:
|
|||||||
//
|
//
|
||||||
// Determine the classes of IPv4 address
|
// Determine the classes of IPv4 address
|
||||||
//
|
//
|
||||||
#define IS_CLASSA_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0x80) == 0x00)
|
#define IS_CLASSA_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0x80) == 0x00)
|
||||||
#define IS_CLASSB_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xc0) == 0x80)
|
#define IS_CLASSB_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xc0) == 0x80)
|
||||||
#define IS_CLASSC_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xe0) == 0xc0)
|
#define IS_CLASSC_IPADDR(x) ((((EFI_IP_ADDRESS*)x)->v4.Addr[0] & 0xe0) == 0xc0)
|
||||||
#define IS_INADDR_UNICAST(x) ((IS_CLASSA_IPADDR(x) || IS_CLASSB_IPADDR(x) || IS_CLASSC_IPADDR(x)) && (((EFI_IP_ADDRESS*)x)->Addr[0] != 0) )
|
#define IS_INADDR_UNICAST(x) ((IS_CLASSA_IPADDR(x) || IS_CLASSB_IPADDR(x) || IS_CLASSC_IPADDR(x)) && (((EFI_IP_ADDRESS*)x)->Addr[0] != 0) )
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -92,14 +92,7 @@ typedef struct {
|
|||||||
EFI_EVENT IgmpGroupEvent[MAX_MCAST_GROUPS];
|
EFI_EVENT IgmpGroupEvent[MAX_MCAST_GROUPS];
|
||||||
UINT16 RandomPort;
|
UINT16 RandomPort;
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
//
|
|
||||||
// TBD
|
|
||||||
//
|
|
||||||
#else
|
|
||||||
UINT32 MCastGroup[MAX_MCAST_GROUPS];
|
UINT32 MCastGroup[MAX_MCAST_GROUPS];
|
||||||
#endif
|
|
||||||
|
|
||||||
BOOLEAN GoodStationIp;
|
BOOLEAN GoodStationIp;
|
||||||
BOOLEAN DidTransmit;
|
BOOLEAN DidTransmit;
|
||||||
UINTN IpLength;
|
UINTN IpLength;
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
Copyright (c) 2006, Intel Corporation
|
|
||||||
All rights reserved. This program and the accompanying materials
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
All rights reserved. This program and the accompanying materials
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
http://opensource.org/licenses/bsd-license.php
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
http://opensource.org/licenses/bsd-license.php
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
bc.c
|
bc.c
|
||||||
@ -162,7 +163,7 @@ SeedRandom (
|
|||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
none -
|
none -
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
@ -216,7 +217,7 @@ IpChecksum (
|
|||||||
Length - Length to be checksummed
|
Length - Length to be checksummed
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Checksum - Returns the 16 bit ones complement of
|
Checksum - Returns the 16 bit ones complement of
|
||||||
ones complement sum of 16 bit words
|
ones complement sum of 16 bit words
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
@ -264,7 +265,7 @@ IpChecksum2 (
|
|||||||
MessageLen - Length to be checksummed
|
MessageLen - Length to be checksummed
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Checksum - Returns the 16 bit ones complement of
|
Checksum - Returns the 16 bit ones complement of
|
||||||
ones complement sum of 16 bit words
|
ones complement sum of 16 bit words
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
@ -298,7 +299,7 @@ UpdateChecksum (
|
|||||||
NewWord - New Value
|
NewWord - New Value
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Checksum - Returns the 16 bit ones complement of
|
Checksum - Returns the 16 bit ones complement of
|
||||||
ones complement sum of 16 bit words
|
ones complement sum of 16 bit words
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
@ -328,7 +329,7 @@ SetMakeCallback (
|
|||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
0 - Callbacks are active on the handle
|
0 - Callbacks are active on the handle
|
||||||
1 - Callbacks are not active on the handle
|
1 - Callbacks are not active on the handle
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
@ -385,7 +386,7 @@ WaitForReceive (
|
|||||||
Arguments:
|
Arguments:
|
||||||
Private - Pointer to Pxe BaseCode Protocol
|
Private - Pointer to Pxe BaseCode Protocol
|
||||||
Function - What PXE function to callback
|
Function - What PXE function to callback
|
||||||
TimeoutEvent - Timer event that will trigger when we have waited too
|
TimeoutEvent - Timer event that will trigger when we have waited too
|
||||||
long for an incoming packet
|
long for an incoming packet
|
||||||
HeaderSizePtr - Pointer to the size of the Header size
|
HeaderSizePtr - Pointer to the size of the Header size
|
||||||
BufferSizePtr - Pointer to the size of the Buffer size
|
BufferSizePtr - Pointer to the size of the Buffer size
|
||||||
@ -446,52 +447,6 @@ WaitForReceive (
|
|||||||
//
|
//
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
//
|
|
||||||
// Check for received packet event.
|
|
||||||
//
|
|
||||||
if (!EFI_ERROR (gBS->CheckEvent (SnpPtr->WaitForPacket))) {
|
|
||||||
//
|
|
||||||
// Packet should be available. Attempt to read it.
|
|
||||||
//
|
|
||||||
*BufferSizePtr = BUFFER_ALLOCATE_SIZE;
|
|
||||||
|
|
||||||
StatCode = SnpPtr->Receive (
|
|
||||||
SnpPtr,
|
|
||||||
HeaderSizePtr,
|
|
||||||
BufferSizePtr,
|
|
||||||
Private->ReceiveBufferPtr,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
ProtocolPtr
|
|
||||||
);
|
|
||||||
|
|
||||||
if (EFI_ERROR (StatCode)) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
//
|
|
||||||
// Packet was received. Make received callback then return.
|
|
||||||
//
|
|
||||||
if (CallbackPtr != NULL) {
|
|
||||||
StatCode = CallbackPtr (
|
|
||||||
Private->CallbackProtocolPtr,
|
|
||||||
Function,
|
|
||||||
TRUE,
|
|
||||||
(UINT32) *BufferSizePtr,
|
|
||||||
(EFI_PXE_BASE_CODE_PACKET *) Private->ReceiveBufferPtr
|
|
||||||
);
|
|
||||||
|
|
||||||
if (StatCode != EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE) {
|
|
||||||
StatCode = EFI_ABORTED;
|
|
||||||
} else {
|
|
||||||
StatCode = EFI_SUCCESS;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
//
|
//
|
||||||
// Poll for received packet.
|
// Poll for received packet.
|
||||||
//
|
//
|
||||||
@ -533,7 +488,7 @@ WaitForReceive (
|
|||||||
if (StatCode != EFI_NOT_READY) {
|
if (StatCode != EFI_NOT_READY) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Check for callback event.
|
// Check for callback event.
|
||||||
//
|
//
|
||||||
@ -599,7 +554,7 @@ SendPacket (
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
Private - Pointer to Pxe BaseCode Protocol
|
Private - Pointer to Pxe BaseCode Protocol
|
||||||
HeaderPtr - Pointer to the buffer
|
HeaderPtr - Pointer to the buffer
|
||||||
PacketPtr - Pointer to the packet to send
|
PacketPtr - Pointer to the packet to send
|
||||||
PacketLen - The length of the entire packet to send
|
PacketLen - The length of the entire packet to send
|
||||||
HardwareAddr - Pointer to the MAC address of the destination
|
HardwareAddr - Pointer to the MAC address of the destination
|
||||||
@ -1263,7 +1218,6 @@ BcStart (
|
|||||||
return EFI_ALREADY_STARTED;
|
return EFI_ALREADY_STARTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !SUPPORT_IPV6
|
|
||||||
//
|
//
|
||||||
// Fail if IPv6 is requested and not supported.
|
// Fail if IPv6 is requested and not supported.
|
||||||
//
|
//
|
||||||
@ -1272,7 +1226,7 @@ BcStart (
|
|||||||
EfiReleaseLock (&Private->Lock);
|
EfiReleaseLock (&Private->Lock);
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Setup shortcuts to SNP protocol and data structure.
|
// Setup shortcuts to SNP protocol and data structure.
|
||||||
//
|
//
|
||||||
@ -1505,12 +1459,8 @@ BcStart (
|
|||||||
// supports IPv6.
|
// supports IPv6.
|
||||||
//
|
//
|
||||||
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;
|
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
Private->EfiBc.Mode->Ipv6Available = Private->NiiPtr->Ipv6Supported;
|
|
||||||
#else
|
|
||||||
Private->EfiBc.Mode->Ipv6Available = FALSE;
|
Private->EfiBc.Mode->Ipv6Available = FALSE;
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Set to TRUE by the BC constructor if this BC implementation
|
// Set to TRUE by the BC constructor if this BC implementation
|
||||||
// supports BIS.
|
// supports BIS.
|
||||||
@ -1756,14 +1706,7 @@ IpFilter (
|
|||||||
//
|
//
|
||||||
if (!Index2)
|
if (!Index2)
|
||||||
{
|
{
|
||||||
#if SUPPORT_IPV6
|
TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;
|
||||||
if (PxebcMode->UsingIpv6) {
|
|
||||||
//
|
|
||||||
// TBD
|
|
||||||
//
|
|
||||||
} else
|
|
||||||
#endif
|
|
||||||
TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;
|
|
||||||
--Index;
|
--Index;
|
||||||
} else {
|
} else {
|
||||||
TmpIp = (EFI_IP_ADDRESS *) &Filter->IpList[Index];
|
TmpIp = (EFI_IP_ADDRESS *) &Filter->IpList[Index];
|
||||||
@ -2309,12 +2252,8 @@ PxeBcDriverStart (
|
|||||||
// implementation supports IPv6.
|
// implementation supports IPv6.
|
||||||
//
|
//
|
||||||
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;
|
Private->EfiBc.Mode->Ipv6Supported = SUPPORT_IPV6;
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
Private->EfiBc.Mode->Ipv6Available = Private->NiiPtr->Ipv6Supported;
|
|
||||||
#else
|
|
||||||
Private->EfiBc.Mode->Ipv6Available = FALSE;
|
Private->EfiBc.Mode->Ipv6Available = FALSE;
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Set to TRUE by the BC constructor if this BC
|
// Set to TRUE by the BC constructor if this BC
|
||||||
// implementation supports BIS.
|
// implementation supports BIS.
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
//
|
//
|
||||||
// Client architecture types
|
// Client architecture types
|
||||||
//
|
//
|
||||||
#if defined MDE_CPU_IA32
|
#if defined MDE_CPU_IA32
|
||||||
#define SYS_ARCH 0x6
|
#define SYS_ARCH 0x6
|
||||||
#elif defined MDE_CPU_X64
|
#elif defined MDE_CPU_X64
|
||||||
#define SYS_ARCH 0x7
|
#define SYS_ARCH 0x7
|
||||||
@ -332,7 +332,7 @@ typedef struct {
|
|||||||
// zero transmitted means checksum not computed
|
// zero transmitted means checksum not computed
|
||||||
// data follows
|
// data follows
|
||||||
//
|
//
|
||||||
UINT16 Checksum;
|
UINT16 Checksum;
|
||||||
} UDPV4_HEADER;
|
} UDPV4_HEADER;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -370,7 +370,7 @@ typedef struct {
|
|||||||
// zero checksum is transmitted as -0 (ones comp)
|
// zero checksum is transmitted as -0 (ones comp)
|
||||||
// zero transmitted means checksum not computed
|
// zero transmitted means checksum not computed
|
||||||
//
|
//
|
||||||
UINT16 Checksum;
|
UINT16 Checksum;
|
||||||
UINT16 UrgentPointer; // pointer to urgent data (allows sender to specify urgent data)
|
UINT16 UrgentPointer; // pointer to urgent data (allows sender to specify urgent data)
|
||||||
} TCPV4_HEADER;
|
} TCPV4_HEADER;
|
||||||
|
|
||||||
@ -435,7 +435,7 @@ typedef struct {
|
|||||||
} IPV4_STRUCT;
|
} IPV4_STRUCT;
|
||||||
|
|
||||||
#pragma pack() // reset to default
|
#pragma pack() // reset to default
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// BC IP Filter Routine
|
// BC IP Filter Routine
|
||||||
@ -723,13 +723,6 @@ IpReceive (
|
|||||||
)
|
)
|
||||||
;
|
;
|
||||||
|
|
||||||
#if 0
|
|
||||||
VOID
|
|
||||||
WaitForTxComplete (
|
|
||||||
IN PXE_BASECODE_DEVICE *Private
|
|
||||||
)
|
|
||||||
;
|
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// routine to cycle waiting for a receive or timeout
|
// routine to cycle waiting for a receive or timeout
|
||||||
//
|
//
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
|
|
||||||
@ -272,13 +272,6 @@ Returns:
|
|||||||
|
|
||||||
Grp = *(UINT32 *) GroupPtr;
|
Grp = *(UINT32 *) GroupPtr;
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
if (Private->EfiBc.Mode->UsingIpv6) {
|
|
||||||
//
|
|
||||||
// TBD
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// see if we already have it or if we can't take anymore
|
// see if we already have it or if we can't take anymore
|
||||||
//
|
//
|
||||||
@ -324,13 +317,6 @@ Returns:
|
|||||||
|
|
||||||
Grp = *(UINT32 *) GroupPtr;
|
Grp = *(UINT32 *) GroupPtr;
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
if (Private->EfiBc.Mode->UsingIpv6) {
|
|
||||||
//
|
|
||||||
// TBD
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// if not in group, ignore
|
// if not in group, ignore
|
||||||
//
|
//
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
pxe_bc_ip.c
|
pxe_bc_ip.c
|
||||||
@ -609,14 +609,6 @@ IpReceive (
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
if (PxeBcMode->UsingIpv6) {
|
|
||||||
//
|
|
||||||
// TBD
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define IpRxHeader ((IPV4_HEADER *) PacketPtr)
|
#define IpRxHeader ((IPV4_HEADER *) PacketPtr)
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
|
|
||||||
pxe_bc_mtftp.c
|
pxe_bc_mtftp.c
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
@ -91,21 +91,21 @@ Routine description:
|
|||||||
information in Mode structure and return TFTP_ERROR status.
|
information in Mode structure and return TFTP_ERROR status.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
Operation :=
|
Operation :=
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
ServerPortPtr :=
|
ServerPortPtr :=
|
||||||
OurIpPtr :=
|
OurIpPtr :=
|
||||||
OurPortPtr :=
|
OurPortPtr :=
|
||||||
Timeout :=
|
Timeout :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCESS :=
|
EFI_SUCCESS :=
|
||||||
EFI_TFTP_ERROR :=
|
EFI_TFTP_ERROR :=
|
||||||
other :=
|
other :=
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
EFI_PXE_BASE_CODE_MODE *PxeBcMode;
|
EFI_PXE_BASE_CODE_MODE *PxeBcMode;
|
||||||
@ -191,10 +191,10 @@ Routine description:
|
|||||||
Send TFTP ERROR message to TFTP server
|
Send TFTP ERROR message to TFTP server
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
ServerPortPtr :=
|
ServerPortPtr :=
|
||||||
OurPortPtr :=
|
OurPortPtr :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -249,7 +249,7 @@ Parameters:
|
|||||||
ServerPortPtr := Pointer to TFTP server UDP port
|
ServerPortPtr := Pointer to TFTP server UDP port
|
||||||
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address
|
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address
|
||||||
OurPortPtr := Pointer to TFTP client UDP port
|
OurPortPtr := Pointer to TFTP client UDP port
|
||||||
Timeout :=
|
Timeout :=
|
||||||
ReplyLenPtr := Pointer to packet length
|
ReplyLenPtr := Pointer to packet length
|
||||||
PxeBcMode := Pointer to packet buffer
|
PxeBcMode := Pointer to packet buffer
|
||||||
BlockNumPtr := Pointer to block number
|
BlockNumPtr := Pointer to block number
|
||||||
@ -398,7 +398,7 @@ Parameters:
|
|||||||
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address
|
ReplyIpPtr := Pointer to TFTP DATA packet destination IP address
|
||||||
OurPortPtr := Pointer to TFTP client UDP port
|
OurPortPtr := Pointer to TFTP client UDP port
|
||||||
LastBlock := Last block number received
|
LastBlock := Last block number received
|
||||||
Timeout :=
|
Timeout :=
|
||||||
DontUseBuffer := TRUE == throw away data, just count # of bytes
|
DontUseBuffer := TRUE == throw away data, just count # of bytes
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@ -605,7 +605,7 @@ Parameters:
|
|||||||
OurPortPtr := Pointer to TFTP client UDP port
|
OurPortPtr := Pointer to TFTP client UDP port
|
||||||
FilenamePtr := Pointer to TFTP file or directory name
|
FilenamePtr := Pointer to TFTP file or directory name
|
||||||
PacketSizePtr := Pointer to block size
|
PacketSizePtr := Pointer to block size
|
||||||
Buffer :=
|
Buffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -713,16 +713,16 @@ Parameters:
|
|||||||
Req := TFTP request type
|
Req := TFTP request type
|
||||||
Options := TFTP option bits
|
Options := TFTP option bits
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
PacketSizePtr := Pointer to block size
|
PacketSizePtr := Pointer to block size
|
||||||
ReplyLenPtr :=
|
ReplyLenPtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr := Pointer to TFTP server IP address
|
ServerIpPtr := Pointer to TFTP server IP address
|
||||||
ServerPortPtr := Pointer to TFTP server UDP port
|
ServerPortPtr := Pointer to TFTP server UDP port
|
||||||
ServerReplyPortPtr :=
|
ServerReplyPortPtr :=
|
||||||
OurPortPtr := Pointer to TFTP client UDP Port
|
OurPortPtr := Pointer to TFTP client UDP Port
|
||||||
FilenamePtr := Pointer to file or directory name
|
FilenamePtr := Pointer to file or directory name
|
||||||
Timeout :=
|
Timeout :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -847,15 +847,15 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr := Pointer to TFTP server IP address
|
ServerIpPtr := Pointer to TFTP server IP address
|
||||||
MtftpInfoPtr := Pointer to MTFTP session information
|
MtftpInfoPtr := Pointer to MTFTP session information
|
||||||
StartBlockPtr := IN=first block we are looking for OUT=first block received
|
StartBlockPtr := IN=first block we are looking for OUT=first block received
|
||||||
NumMissedPtr := Number of blocks missed
|
NumMissedPtr := Number of blocks missed
|
||||||
TransTimeout :=
|
TransTimeout :=
|
||||||
ListenTimeout :=
|
ListenTimeout :=
|
||||||
FinalBlock :=
|
FinalBlock :=
|
||||||
DontUseBuffer := TRUE == throw packets away, just count bytes
|
DontUseBuffer := TRUE == throw packets away, just count bytes
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
@ -991,17 +991,17 @@ Routine description:
|
|||||||
Parameters:
|
Parameters:
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
BufferSizePtr := IN=buffer size OUT=transfer size
|
BufferSizePtr := IN=buffer size OUT=transfer size
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
PacketSizePtr :=
|
PacketSizePtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
MtftpInfoPtr :=
|
MtftpInfoPtr :=
|
||||||
CompletionStatusPtr :=
|
CompletionStatusPtr :=
|
||||||
DontUseBuffer :=
|
DontUseBuffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
// mtftp open session
|
// mtftp open session
|
||||||
// return code EFI_SUCCESS
|
// return code EFI_SUCCESS
|
||||||
// and *CompletionStatusPtr = GOTUNI | GOTMULTI means done
|
// and *CompletionStatusPtr = GOTUNI | GOTMULTI means done
|
||||||
// and *CompletionStatusPtr = GOTMULTI means got first two multicast packets, use listen for rest
|
// and *CompletionStatusPtr = GOTMULTI means got first two multicast packets, use listen for rest
|
||||||
// and *CompletionStatusPtr = 0 means did not get first two multicast packets, use listen for all
|
// and *CompletionStatusPtr = 0 means did not get first two multicast packets, use listen for all
|
||||||
@ -1205,12 +1205,12 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
MtftpInfoPtr :=
|
MtftpInfoPtr :=
|
||||||
DontUseBuffer :=
|
DontUseBuffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -1255,17 +1255,8 @@ Returns:
|
|||||||
BufferPtrLocal = BufferPtr + Offset;
|
BufferPtrLocal = BufferPtr + Offset;
|
||||||
|
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// special !!! do not leave enabled in saved version on Source Safe
|
if (((Status = MtftpListen (
|
||||||
// Following code put in in order to create a special version for regression
|
|
||||||
// test of MTFTP server to make sure it handles mulitple opens correctly.
|
|
||||||
// This code should NOT be enabled normally.
|
|
||||||
//
|
|
||||||
#ifdef SpecialNowaitVersion
|
|
||||||
#pragma message ("This is special version for MTFTP regression test")
|
|
||||||
if (StartBlock || !LastBlock)
|
|
||||||
#endif
|
|
||||||
if (((Status = MtftpListen (
|
|
||||||
Private,
|
Private,
|
||||||
&BufferSize,
|
&BufferSize,
|
||||||
BufferPtrLocal,
|
BufferPtrLocal,
|
||||||
@ -1278,11 +1269,11 @@ Returns:
|
|||||||
LastBlock,
|
LastBlock,
|
||||||
DontUseBuffer
|
DontUseBuffer
|
||||||
)) != EFI_SUCCESS) && (Status != EFI_TIMEOUT)) {
|
)) != EFI_SUCCESS) && (Status != EFI_TIMEOUT)) {
|
||||||
return Status;
|
return Status;
|
||||||
//
|
//
|
||||||
// failed
|
// failed
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// if none were received, start block is not reset
|
// if none were received, start block is not reset
|
||||||
//
|
//
|
||||||
@ -1399,12 +1390,12 @@ Routine description:
|
|||||||
// if OACK received, set info
|
// if OACK received, set info
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
SrvPort :=
|
SrvPort :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
PacketSizePtr :=
|
PacketSizePtr :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -1581,15 +1572,15 @@ Routine description:
|
|||||||
// while data size is max
|
// while data size is max
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
PacketSizePtr :=
|
PacketSizePtr :=
|
||||||
SrvPort :=
|
SrvPort :=
|
||||||
Req :=
|
Req :=
|
||||||
DontUseBuffer :=
|
DontUseBuffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -1765,13 +1756,13 @@ Routine description:
|
|||||||
// while data size is max
|
// while data size is max
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
PacketSizePtr :=
|
PacketSizePtr :=
|
||||||
Overwrite :=
|
Overwrite :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
--*/
|
--*/
|
||||||
@ -1951,16 +1942,16 @@ Routine description:
|
|||||||
MTFTP API entry point
|
MTFTP API entry point
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private :=
|
Private :=
|
||||||
Operation :=
|
Operation :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
PacketSizePtr :=
|
PacketSizePtr :=
|
||||||
MtftpInfoPtr :=
|
MtftpInfoPtr :=
|
||||||
Overwrite :=
|
Overwrite :=
|
||||||
DontUseBuffer :=
|
DontUseBuffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
* EFI_INVALID_PARAMETER
|
* EFI_INVALID_PARAMETER
|
||||||
@ -2313,16 +2304,16 @@ Routine description:
|
|||||||
MTFTP API entry point.
|
MTFTP API entry point.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
This :=
|
This :=
|
||||||
Operation :=
|
Operation :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
Overwrite :=
|
Overwrite :=
|
||||||
BufferSizePtr :=
|
BufferSizePtr :=
|
||||||
BlockSizePtr :=
|
BlockSizePtr :=
|
||||||
ServerIpPtr :=
|
ServerIpPtr :=
|
||||||
FilenamePtr :=
|
FilenamePtr :=
|
||||||
MtftpInfoPtr :=
|
MtftpInfoPtr :=
|
||||||
DontUseBuffer :=
|
DontUseBuffer :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
* EFI_INVALID_PARAMETER
|
* EFI_INVALID_PARAMETER
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
pxe_bc_udp.c
|
pxe_bc_udp.c
|
||||||
@ -44,21 +44,21 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
OpFlags :=
|
OpFlags :=
|
||||||
DestIpPtr :=
|
DestIpPtr :=
|
||||||
DestPortPtr :=
|
DestPortPtr :=
|
||||||
GatewayIpPtr :=
|
GatewayIpPtr :=
|
||||||
SrcIpPtr :=
|
SrcIpPtr :=
|
||||||
SrcPortPtr :=
|
SrcPortPtr :=
|
||||||
HeaderSizePtr :=
|
HeaderSizePtr :=
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
BufferSizeptr :=
|
BufferSizeptr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCESS :=
|
EFI_SUCCESS :=
|
||||||
EFI_INVALID_PARAMETER :=
|
EFI_INVALID_PARAMETER :=
|
||||||
other :=
|
other :=
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
UINTN TotalLength;
|
UINTN TotalLength;
|
||||||
@ -197,20 +197,20 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
This := Pointer to PxeBc interface.
|
This := Pointer to PxeBc interface.
|
||||||
OpFlags :=
|
OpFlags :=
|
||||||
DestIpPtr :=
|
DestIpPtr :=
|
||||||
DestPortPtr :=
|
DestPortPtr :=
|
||||||
GatewayIpPtr :=
|
GatewayIpPtr :=
|
||||||
SrcIpPtr :=
|
SrcIpPtr :=
|
||||||
SrcPortPtr :=
|
SrcPortPtr :=
|
||||||
HeaderSizePtr :=
|
HeaderSizePtr :=
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
BufferSizeptr :=
|
BufferSizeptr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCESS :=
|
EFI_SUCCESS :=
|
||||||
other :=
|
other :=
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
EFI_STATUS StatCode;
|
EFI_STATUS StatCode;
|
||||||
@ -291,21 +291,21 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
Private := Pointer to PxeBc interface
|
Private := Pointer to PxeBc interface
|
||||||
OpFlags :=
|
OpFlags :=
|
||||||
DestIpPtr :=
|
DestIpPtr :=
|
||||||
DestPortPtr :=
|
DestPortPtr :=
|
||||||
SrcIpPtr :=
|
SrcIpPtr :=
|
||||||
SrcPortPtr :=
|
SrcPortPtr :=
|
||||||
HeaderSizePtr :=
|
HeaderSizePtr :=
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
BufferSizeptr :=
|
BufferSizeptr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
TimeoutEvent :=
|
TimeoutEvent :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCESS :=
|
EFI_SUCCESS :=
|
||||||
EFI_INVALID_PARAMETER :=
|
EFI_INVALID_PARAMETER :=
|
||||||
other :=
|
other :=
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
EFI_STATUS StatCode;
|
EFI_STATUS StatCode;
|
||||||
@ -362,14 +362,6 @@ Returns:
|
|||||||
CopyMem (&TmpDestIp, &Private->EfiBc.Mode->StationIp, sizeof (TmpDestIp));
|
CopyMem (&TmpDestIp, &Private->EfiBc.Mode->StationIp, sizeof (TmpDestIp));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if SUPPORT_IPV6
|
|
||||||
if (Private->EfiBc.Mode->UsingIpv6) {
|
|
||||||
//
|
|
||||||
// %%TBD
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
*BufferSizeptr = BufferSize;
|
*BufferSizeptr = BufferSize;
|
||||||
|
|
||||||
@ -500,19 +492,19 @@ Routine description:
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
This := Pointer to PxeBc interface.
|
This := Pointer to PxeBc interface.
|
||||||
OpFlags :=
|
OpFlags :=
|
||||||
DestIpPtr :=
|
DestIpPtr :=
|
||||||
DestPortPtr :=
|
DestPortPtr :=
|
||||||
SrcIpPtr :=
|
SrcIpPtr :=
|
||||||
SrcPortPtr :=
|
SrcPortPtr :=
|
||||||
HeaderSizePtr :=
|
HeaderSizePtr :=
|
||||||
HeaderPtr :=
|
HeaderPtr :=
|
||||||
BufferSizeptr :=
|
BufferSizeptr :=
|
||||||
BufferPtr :=
|
BufferPtr :=
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_SUCCESS :=
|
EFI_SUCCESS :=
|
||||||
other :=
|
other :=
|
||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
EFI_STATUS StatCode;
|
EFI_STATUS StatCode;
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
PxeDhcp4InitSelect.c
|
PxeDhcp4InitSelect.c
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
@ -332,13 +332,6 @@ PxeDhcp4Init (
|
|||||||
return EFI_NOT_READY;
|
return EFI_NOT_READY;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (!is_good_discover (&This->Data->Discover)) {
|
|
||||||
//
|
|
||||||
// %%TBD - check discover packet fields
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Get pointer to our instance data.
|
// Get pointer to our instance data.
|
||||||
//
|
//
|
||||||
@ -477,13 +470,6 @@ PxeDhcp4Select (
|
|||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (!is_good_discover (&This->Data->Discover)) {
|
|
||||||
//
|
|
||||||
// %%TBD - check discover packet fields
|
|
||||||
//
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
//
|
//
|
||||||
// Setup useful variables...
|
// Setup useful variables...
|
||||||
//
|
//
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
/*++
|
/*++
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006 - 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
support.c
|
support.c
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
Miscellaneous support routines for PxeDhcp4 protocol.
|
Miscellaneous support routines for PxeDhcp4 protocol.
|
||||||
|
|
||||||
@ -746,7 +746,7 @@ Parameters:
|
|||||||
op_flags := UDP receive operation flags
|
op_flags := UDP receive operation flags
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_INVALID_PARAMETER :=
|
EFI_INVALID_PARAMETER :=
|
||||||
EFI_SUCCESS := Packet received
|
EFI_SUCCESS := Packet received
|
||||||
other := Return from PxeBc->UdpRead()
|
other := Return from PxeBc->UdpRead()
|
||||||
--*/
|
--*/
|
||||||
@ -827,7 +827,7 @@ Parameters:
|
|||||||
SecondsTimeout := Number of seconds until timeout
|
SecondsTimeout := Number of seconds until timeout
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL ||
|
EFI_INVALID_PARAMETER := Private == NULL || ServerIp == NULL ||
|
||||||
tx_pkt == NULL || rx_pkt == NULL || rx_vfy == NULL || Private->PxeBc == NULL
|
tx_pkt == NULL || rx_pkt == NULL || rx_vfy == NULL || Private->PxeBc == NULL
|
||||||
EFI_ABORTED := Receive aborted
|
EFI_ABORTED := Receive aborted
|
||||||
EFI_TIMEOUT := No packets received
|
EFI_TIMEOUT := No packets received
|
||||||
@ -923,31 +923,6 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Wait for packet(s)...
|
// Wait for packet(s)...
|
||||||
//
|
//
|
||||||
#if 0
|
|
||||||
if (!client_ip) {
|
|
||||||
Aprint ("client_ip == NULL ");
|
|
||||||
} else {
|
|
||||||
Aprint (
|
|
||||||
"client_ip == %d.%d.%d.%d ",
|
|
||||||
client_ip->v4.Addr[0],
|
|
||||||
client_ip->v4.Addr[1],
|
|
||||||
client_ip->v4.Addr[2],
|
|
||||||
client_ip->v4.Addr[3]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ServerIp) {
|
|
||||||
Aprint ("ServerIp == NULL\n");
|
|
||||||
} else {
|
|
||||||
Aprint (
|
|
||||||
"ServerIp == %d.%d.%d.%d\n",
|
|
||||||
ServerIp->v4.Addr[0],
|
|
||||||
ServerIp->v4.Addr[1],
|
|
||||||
ServerIp->v4.Addr[2],
|
|
||||||
ServerIp->v4.Addr[3]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
done_flag = FALSE;
|
done_flag = FALSE;
|
||||||
got_packet = FALSE;
|
got_packet = FALSE;
|
||||||
|
@ -39,12 +39,12 @@
|
|||||||
<SourceFiles>
|
<SourceFiles>
|
||||||
<Filename>IoLibMmioBuffer.c</Filename>
|
<Filename>IoLibMmioBuffer.c</Filename>
|
||||||
<Filename SupArchList="IA32">IoLib.c</Filename>
|
<Filename SupArchList="IA32">IoLib.c</Filename>
|
||||||
<Filename SupArchList="IA32">IoLibMsc.c</Filename>
|
<Filename SupArchList="IA32" ToolChainFamily="MSFT">IoLibMsc.c</Filename>
|
||||||
<Filename SupArchList="IA32">IoLibGcc.c</Filename>
|
<Filename SupArchList="IA32" ToolChainFamily="GCC">IoLibGcc.c</Filename>
|
||||||
<Filename SupArchList="IA32">IoHighLevel.c</Filename>
|
<Filename SupArchList="IA32">IoHighLevel.c</Filename>
|
||||||
<Filename SupArchList="X64">IoLib.c</Filename>
|
<Filename SupArchList="X64">IoLib.c</Filename>
|
||||||
<Filename SupArchList="X64">IoLibMsc.c</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="MSFT">IoLibMsc.c</Filename>
|
||||||
<Filename SupArchList="X64">IoLibGcc.c</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="GCC">IoLibGcc.c</Filename>
|
||||||
<Filename SupArchList="X64">IoHighLevel.c</Filename>
|
<Filename SupArchList="X64">IoHighLevel.c</Filename>
|
||||||
<Filename SupArchList="IPF">IoLibIpf.c</Filename>
|
<Filename SupArchList="IPF">IoLibIpf.c</Filename>
|
||||||
<Filename SupArchList="IPF">IoHighLevel.c</Filename>
|
<Filename SupArchList="IPF">IoHighLevel.c</Filename>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
We don't advocate putting compiler specifics in libraries or drivers but there
|
We don't advocate putting compiler specifics in libraries or drivers but there
|
||||||
is no other way to make this work.
|
is no other way to make this work.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -23,8 +23,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads an 8-bit MMIO register.
|
Reads an 8-bit MMIO register.
|
||||||
|
|
||||||
@ -383,4 +381,3 @@ IoWrite32 (
|
|||||||
return Value;
|
return Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
We don't advocate putting compiler specifics in libraries or drivers but there
|
We don't advocate putting compiler specifics in libraries or drivers but there
|
||||||
is no other way to make this work.
|
is no other way to make this work.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -22,8 +22,6 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
|
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
|
||||||
//
|
//
|
||||||
@ -426,4 +424,3 @@ MmioWrite64 (
|
|||||||
return *(volatile UINT64*)Address = Value;
|
return *(volatile UINT64*)Address = Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -473,8 +473,8 @@
|
|||||||
<Filename SupArchList="X64">X64/FlushCacheLine.asm</Filename>
|
<Filename SupArchList="X64">X64/FlushCacheLine.asm</Filename>
|
||||||
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedIncrement.c</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedIncrement.c</Filename>
|
||||||
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedDecrement.c</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedDecrement.c</Filename>
|
||||||
<Filename SupArchList="X64">X64/InterlockedCompareExchange32.asm</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedCompareExchange32.asm</Filename>
|
||||||
<Filename SupArchList="X64">X64/InterlockedCompareExchange64.asm</Filename>
|
<Filename SupArchList="X64" ToolChainFamily="MSFT">X64/InterlockedCompareExchange64.asm</Filename>
|
||||||
<Filename SupArchList="X64">X64/EnableInterrupts.asm</Filename>
|
<Filename SupArchList="X64">X64/EnableInterrupts.asm</Filename>
|
||||||
<Filename SupArchList="X64">X64/DisableInterrupts.asm</Filename>
|
<Filename SupArchList="X64">X64/DisableInterrupts.asm</Filename>
|
||||||
<Filename SupArchList="X64">X64/EnableDisableInterrupts.asm</Filename>
|
<Filename SupArchList="X64">X64/EnableDisableInterrupts.asm</Filename>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
64-bit arithmetic right shift function for IA-32.
|
64-bit arithmetic right shift function for IA-32.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathARShiftU64 (
|
InternalMathARShiftU64 (
|
||||||
@ -33,4 +31,3 @@ InternalMathARShiftU64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CpuBreakpoint function.
|
CpuBreakpoint function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
|
// Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics
|
||||||
//
|
//
|
||||||
@ -30,4 +28,3 @@ CpuBreakpoint (
|
|||||||
__debugbreak ();
|
__debugbreak ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CpuFlushTlb function.
|
CpuFlushTlb function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuFlushTlb (
|
CpuFlushTlb (
|
||||||
@ -26,4 +24,3 @@ CpuFlushTlb (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmCpuid function.
|
AsmCpuid function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmCpuid (
|
AsmCpuid (
|
||||||
@ -49,4 +47,3 @@ SkipEdx:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmCpuidEx function.
|
AsmCpuidEx function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmCpuidEx (
|
AsmCpuidEx (
|
||||||
@ -50,5 +48,3 @@ SkipEdx:
|
|||||||
mov eax, Index
|
mov eax, Index
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CpuPause function.
|
CpuPause function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuPause (
|
CpuPause (
|
||||||
@ -25,4 +23,3 @@ CpuPause (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
CpuSleep function.
|
CpuSleep function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CpuSleep (
|
CpuSleep (
|
||||||
@ -25,4 +23,3 @@ CpuSleep (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
DisableInterrupts function.
|
DisableInterrupts function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
DisableInterrupts (
|
DisableInterrupts (
|
||||||
@ -25,4 +23,3 @@ DisableInterrupts (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmDisablePaging32 function.
|
AsmDisablePaging32 function.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
__declspec (naked)
|
__declspec (naked)
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -46,4 +44,3 @@ InternalX86DisablePaging32 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Calculate the quotient of a 64-bit integer by a 32-bit integer
|
Calculate the quotient of a 64-bit integer by a 32-bit integer
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathDivU64x32 (
|
InternalMathDivU64x32 (
|
||||||
@ -33,4 +31,3 @@ InternalMathDivU64x32 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Set error flag for all division functions
|
Set error flag for all division functions
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathDivRemU64x32 (
|
InternalMathDivRemU64x32 (
|
||||||
@ -38,4 +36,3 @@ RemainderNull:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Calculate the quotient of a 64-bit integer by a 64-bit integer and returns
|
Calculate the quotient of a 64-bit integer by a 64-bit integer and returns
|
||||||
both the quotient and the remainderSet error flag for all division functions
|
both the quotient and the remainderSet error flag for all division functions
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathDivRemU64x64 (
|
InternalMathDivRemU64x64 (
|
||||||
@ -66,4 +64,3 @@ Return:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
EnableDisableInterrupts function
|
EnableDisableInterrupts function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EnableDisableInterrupts (
|
EnableDisableInterrupts (
|
||||||
@ -28,4 +26,3 @@ EnableDisableInterrupts (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
EnableInterrupts function
|
EnableInterrupts function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
EnableInterrupts (
|
EnableInterrupts (
|
||||||
@ -25,4 +23,3 @@ EnableInterrupts (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmEnablePaging32 function
|
AsmEnablePaging32 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
__declspec (naked)
|
__declspec (naked)
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -46,4 +44,3 @@ InternalX86EnablePaging32 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmFlushCacheLine function
|
AsmFlushCacheLine function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID *
|
VOID *
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmFlushCacheLine (
|
AsmFlushCacheLine (
|
||||||
@ -26,4 +24,3 @@ AsmFlushCacheLine (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmFxRestore function
|
AsmFxRestore function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalX86FxRestore (
|
InternalX86FxRestore (
|
||||||
@ -26,4 +24,3 @@ InternalX86FxRestore (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmFxSave function
|
AsmFxSave function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalX86FxSave (
|
InternalX86FxSave (
|
||||||
@ -26,4 +24,3 @@ InternalX86FxSave (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
InterlockedCompareExchange32 function
|
InterlockedCompareExchange32 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalSyncCompareExchange32 (
|
InternalSyncCompareExchange32 (
|
||||||
@ -30,4 +28,3 @@ InternalSyncCompareExchange32 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
InterlockedCompareExchange64 function
|
InterlockedCompareExchange64 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalSyncCompareExchange64 (
|
InternalSyncCompareExchange64 (
|
||||||
@ -31,5 +29,3 @@ InternalSyncCompareExchange64 (
|
|||||||
lock cmpxchg8b qword ptr [esi]
|
lock cmpxchg8b qword ptr [esi]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
InterlockedDecrement function
|
InterlockedDecrement function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalSyncDecrement (
|
InternalSyncDecrement (
|
||||||
@ -26,5 +24,3 @@ InternalSyncDecrement (
|
|||||||
mov eax, [eax]
|
mov eax, [eax]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
InterLockedIncrement function
|
InterLockedIncrement function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalSyncIncrement (
|
InternalSyncIncrement (
|
||||||
@ -27,4 +25,3 @@ InternalSyncIncrement (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmInvd function
|
AsmInvd function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmInvd (
|
AsmInvd (
|
||||||
@ -25,4 +23,3 @@ AsmInvd (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
64-bit left rotation for Ia32
|
64-bit left rotation for Ia32
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathLRotU64 (
|
InternalMathLRotU64 (
|
||||||
@ -36,4 +34,3 @@ InternalMathLRotU64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
64-bit left shift function for IA-32.
|
64-bit left shift function for IA-32.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathLShiftU64 (
|
InternalMathLShiftU64 (
|
||||||
@ -33,4 +31,3 @@ InternalMathLShiftU64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Implementation of _LongJump() on IA-32.
|
Implementation of _LongJump() on IA-32.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
__declspec (naked)
|
__declspec (naked)
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
@ -35,4 +33,3 @@ InternalLongJump (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Calculate the remainder of a 64-bit integer by a 32-bit integer
|
Calculate the remainder of a 64-bit integer by a 32-bit integer
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT32
|
UINT32
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathModU64x32 (
|
InternalMathModU64x32 (
|
||||||
@ -31,5 +29,3 @@ InternalMathModU64x32 (
|
|||||||
mov eax, edx
|
mov eax, edx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmMonitor function
|
AsmMonitor function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmMonitor (
|
AsmMonitor (
|
||||||
@ -32,4 +30,3 @@ AsmMonitor (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Calculate the product of a 64-bit integer and a 32-bit integer
|
Calculate the product of a 64-bit integer and a 32-bit integer
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathMultU64x32 (
|
InternalMathMultU64x32 (
|
||||||
@ -30,4 +28,3 @@ InternalMathMultU64x32 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Calculate the product of a 64-bit integer and another 64-bit integer
|
Calculate the product of a 64-bit integer and another 64-bit integer
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathMultU64x64 (
|
InternalMathMultU64x64 (
|
||||||
@ -34,4 +32,3 @@ InternalMathMultU64x64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmMwait function
|
AsmMwait function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmMwait (
|
AsmMwait (
|
||||||
@ -30,4 +28,3 @@ AsmMwait (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
64-bit right rotation for Ia32
|
64-bit right rotation for Ia32
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathRRotU64 (
|
InternalMathRRotU64 (
|
||||||
@ -36,4 +34,3 @@ InternalMathRRotU64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
64-bit logical right shift function for IA-32
|
64-bit logical right shift function for IA-32
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathRShiftU64 (
|
InternalMathRShiftU64 (
|
||||||
@ -33,4 +31,3 @@ InternalMathRShiftU64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadCr0 function
|
AsmReadCr0 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadCr0 (
|
AsmReadCr0 (
|
||||||
@ -24,5 +22,3 @@ AsmReadCr0 (
|
|||||||
mov eax, cr0
|
mov eax, cr0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadCr2 function
|
AsmReadCr2 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadCr2 (
|
AsmReadCr2 (
|
||||||
@ -25,4 +23,3 @@ AsmReadCr2 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadCr3 function
|
AsmReadCr3 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadCr3 (
|
AsmReadCr3 (
|
||||||
@ -25,4 +23,3 @@ AsmReadCr3 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadCr4 function
|
AsmReadCr4 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadCr4 (
|
AsmReadCr4 (
|
||||||
@ -27,4 +25,3 @@ AsmReadCr4 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadCs function
|
AsmReadCs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadCs (
|
AsmReadCs (
|
||||||
@ -26,4 +24,3 @@ AsmReadCs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr0 function
|
AsmReadDr0 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr0 (
|
AsmReadDr0 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr0 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr1 function
|
AsmReadDr1 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr1 (
|
AsmReadDr1 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr1 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr2 function
|
AsmReadDr2 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr2 (
|
AsmReadDr2 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr2 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr3 function
|
AsmReadDr3 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr3 (
|
AsmReadDr3 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr3 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr4 function
|
AsmReadDr4 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr4 (
|
AsmReadDr4 (
|
||||||
@ -27,4 +25,3 @@ AsmReadDr4 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr5 function
|
AsmReadDr5 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr5 (
|
AsmReadDr5 (
|
||||||
@ -27,4 +25,3 @@ AsmReadDr5 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr6 function
|
AsmReadDr6 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr6 (
|
AsmReadDr6 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr6 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDr7 function
|
AsmReadDr7 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDr7 (
|
AsmReadDr7 (
|
||||||
@ -25,4 +23,3 @@ AsmReadDr7 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadDs function
|
AsmReadDs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadDs (
|
AsmReadDs (
|
||||||
@ -26,4 +24,3 @@ AsmReadDs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadEflags function
|
AsmReadEflags function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadEflags (
|
AsmReadEflags (
|
||||||
@ -26,4 +24,3 @@ AsmReadEflags (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadEs function
|
AsmReadEs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadEs (
|
AsmReadEs (
|
||||||
@ -26,4 +24,3 @@ AsmReadEs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadFs function
|
AsmReadFs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadFs (
|
AsmReadFs (
|
||||||
@ -26,4 +24,3 @@ AsmReadFs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadGdtr function
|
AsmReadGdtr function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalX86ReadGdtr (
|
InternalX86ReadGdtr (
|
||||||
@ -26,4 +24,3 @@ InternalX86ReadGdtr (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadGs function
|
AsmReadGs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadGs (
|
AsmReadGs (
|
||||||
@ -26,4 +24,3 @@ AsmReadGs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadIdtr function
|
AsmReadIdtr function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalX86ReadIdtr (
|
InternalX86ReadIdtr (
|
||||||
@ -25,5 +23,3 @@ InternalX86ReadIdtr (
|
|||||||
sidt fword ptr [eax]
|
sidt fword ptr [eax]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadLdtr function
|
AsmReadLdtr function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadLdtr (
|
AsmReadLdtr (
|
||||||
@ -25,4 +23,3 @@ AsmReadLdtr (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm0 function
|
AsmReadMm0 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm0 (
|
AsmReadMm0 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm0 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm1 function
|
AsmReadMm1 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm1 (
|
AsmReadMm1 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm1 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm2 function
|
AsmReadMm2 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm2 (
|
AsmReadMm2 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm2 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm3 function
|
AsmReadMm3 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm3 (
|
AsmReadMm3 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm3 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm4 function
|
AsmReadMm4 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm4 (
|
AsmReadMm4 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm4 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm5 function
|
AsmReadMm5 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm5 (
|
AsmReadMm5 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm5 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm6 function
|
AsmReadMm6 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm6 (
|
AsmReadMm6 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm6 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMm7 function
|
AsmReadMm7 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMm7 (
|
AsmReadMm7 (
|
||||||
@ -30,4 +28,3 @@ AsmReadMm7 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadMsr64 function
|
AsmReadMsr64 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadMsr64 (
|
AsmReadMsr64 (
|
||||||
@ -26,4 +24,3 @@ AsmReadMsr64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadPmc function
|
AsmReadPmc function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadPmc (
|
AsmReadPmc (
|
||||||
@ -26,4 +24,3 @@ AsmReadPmc (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadSs function
|
AsmReadSs function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadSs (
|
AsmReadSs (
|
||||||
@ -26,4 +24,3 @@ AsmReadSs (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadTr function
|
AsmReadTr function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT16
|
UINT16
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadTr (
|
AsmReadTr (
|
||||||
@ -25,4 +23,3 @@ AsmReadTr (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmReadTsc function
|
AsmReadTsc function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmReadTsc (
|
AsmReadTsc (
|
||||||
@ -25,4 +23,3 @@ AsmReadTsc (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Implementation of SetJump() on IA-32.
|
Implementation of SetJump() on IA-32.
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalAssertJumpBuffer (
|
InternalAssertJumpBuffer (
|
||||||
@ -26,7 +24,7 @@ EFIAPI
|
|||||||
SetJump (
|
SetJump (
|
||||||
OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
|
OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_asm {
|
_asm {
|
||||||
push [esp + 4]
|
push [esp + 4]
|
||||||
call InternalAssertJumpBuffer
|
call InternalAssertJumpBuffer
|
||||||
@ -44,4 +42,3 @@ SetJump (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Implementation of 64-bit swap bytes
|
Implementation of 64-bit swap bytes
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINT64
|
UINT64
|
||||||
EFIAPI
|
EFIAPI
|
||||||
InternalMathSwapBytes64 (
|
InternalMathSwapBytes64 (
|
||||||
@ -28,4 +26,3 @@ InternalMathSwapBytes64 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWbinvd function
|
AsmWbinvd function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWbinvd (
|
AsmWbinvd (
|
||||||
@ -25,4 +23,3 @@ AsmWbinvd (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteCr0 function
|
AsmWriteCr0 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteCr0 (
|
AsmWriteCr0 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteCr0 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteCr2 function
|
AsmWriteCr2 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteCr2 (
|
AsmWriteCr2 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteCr2 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteCr3 function
|
AsmWriteCr3 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteCr3 (
|
AsmWriteCr3 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteCr3 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteCr4 function
|
AsmWriteCr4 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteCr4 (
|
AsmWriteCr4 (
|
||||||
@ -28,4 +26,3 @@ AsmWriteCr4 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr0 function
|
AsmWriteDr0 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr0 (
|
AsmWriteDr0 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr0 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr1 function
|
AsmWriteDr1 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr1 (
|
AsmWriteDr1 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr1 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr2 function
|
AsmWriteDr2 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr2 (
|
AsmWriteDr2 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr2 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr3 function
|
AsmWriteDr3 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr3 (
|
AsmWriteDr3 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr3 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr4 function
|
AsmWriteDr4 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr4 (
|
AsmWriteDr4 (
|
||||||
@ -28,4 +26,3 @@ AsmWriteDr4 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr5 function
|
AsmWriteDr5 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr5 (
|
AsmWriteDr5 (
|
||||||
@ -28,4 +26,3 @@ AsmWriteDr5 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr6 function
|
AsmWriteDr6 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr6 (
|
AsmWriteDr6 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr6 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
AsmWriteDr7 function
|
AsmWriteDr7 function
|
||||||
|
|
||||||
Copyright (c) 2006, Intel Corporation<BR>
|
Copyright (c) 2006 - 2007, Intel Corporation<BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#if _MSC_EXTENSIONS
|
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
AsmWriteDr7 (
|
AsmWriteDr7 (
|
||||||
@ -26,4 +24,3 @@ AsmWriteDr7 (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user