mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Fix typos in comments and variables
- abstrated to abstracted - accessibla to accessible - addres to address - apropriate to appropriate - arry to array - availabe to available - avaliable to available - becasue to because - correponding to corresponding - etablished to established - exeuction to execution - extensiable to extensible - fileds to fields - loadding to loading - ptototypes to prototypes - prococol protocol - requried to required - resoruce to resource - runing to running - uild to build Cc: Star Zeng <star.zeng@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Giri P Mudusuru <giri.p.mudusuru@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
241993480e
commit
2048c585b4
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
The application to show the Boot Manager Menu.
|
The application to show the Boot Manager Menu.
|
||||||
|
|
||||||
Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -738,7 +738,7 @@ BdsSetConsoleMode (
|
||||||
|
|
||||||
if (IsSetupMode) {
|
if (IsSetupMode) {
|
||||||
//
|
//
|
||||||
// The requried resolution and text mode is setup mode.
|
// The required resolution and text mode is setup mode.
|
||||||
//
|
//
|
||||||
NewHorizontalResolution = mSetupHorizontalResolution;
|
NewHorizontalResolution = mSetupHorizontalResolution;
|
||||||
NewVerticalResolution = mSetupVerticalResolution;
|
NewVerticalResolution = mSetupVerticalResolution;
|
||||||
|
@ -794,7 +794,7 @@ BdsSetConsoleMode (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// If current text mode is different from requried text mode. Set new video mode
|
// If current text mode is different from required text mode. Set new video mode
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < MaxTextMode; Index++) {
|
for (Index = 0; Index < MaxTextMode; Index++) {
|
||||||
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
||||||
|
@ -819,7 +819,7 @@ BdsSetConsoleMode (
|
||||||
}
|
}
|
||||||
if (Index == MaxTextMode) {
|
if (Index == MaxTextMode) {
|
||||||
//
|
//
|
||||||
// If requried text mode is not supported, return error.
|
// If required text mode is not supported, return error.
|
||||||
//
|
//
|
||||||
FreePool (Info);
|
FreePool (Info);
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
|
|
|
@ -713,7 +713,7 @@ UiSetConsoleMode (
|
||||||
|
|
||||||
if (IsSetupMode) {
|
if (IsSetupMode) {
|
||||||
//
|
//
|
||||||
// The requried resolution and text mode is setup mode.
|
// The required resolution and text mode is setup mode.
|
||||||
//
|
//
|
||||||
NewHorizontalResolution = mSetupHorizontalResolution;
|
NewHorizontalResolution = mSetupHorizontalResolution;
|
||||||
NewVerticalResolution = mSetupVerticalResolution;
|
NewVerticalResolution = mSetupVerticalResolution;
|
||||||
|
@ -769,7 +769,7 @@ UiSetConsoleMode (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// If current text mode is different from requried text mode. Set new video mode
|
// If current text mode is different from required text mode. Set new video mode
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < MaxTextMode; Index++) {
|
for (Index = 0; Index < MaxTextMode; Index++) {
|
||||||
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
||||||
|
@ -794,7 +794,7 @@ UiSetConsoleMode (
|
||||||
}
|
}
|
||||||
if (Index == MaxTextMode) {
|
if (Index == MaxTextMode) {
|
||||||
//
|
//
|
||||||
// If requried text mode is not supported, return error.
|
// If required text mode is not supported, return error.
|
||||||
//
|
//
|
||||||
FreePool (Info);
|
FreePool (Info);
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Controller and installs the ISA Host Controller Service Binding protocol
|
Controller and installs the ISA Host Controller Service Binding protocol
|
||||||
on the ISA Host Controller's handle.
|
on the ISA Host Controller's handle.
|
||||||
|
|
||||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -117,7 +117,7 @@ ISA_BUS_CHILD_PRIVATE_DATA mIsaBusChildPrivateTemplate = {
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Routine procedures for memory allocate/free.
|
Routine procedures for memory allocate/free.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -534,7 +534,7 @@ UsbHcFreeMem (
|
||||||
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
||||||
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
||||||
which is used to enable recovery function from USB Drivers.
|
which is used to enable recovery function from USB Drivers.
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -462,7 +462,7 @@ UsbHcFreeMem (
|
||||||
Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
||||||
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
PCI eunmeration implementation on entire PCI bus system for PCI Bus module.
|
PCI eunmeration implementation on entire PCI bus system for PCI Bus module.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
|
(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -962,7 +962,7 @@ GetMaxResourceConsumerDevice (
|
||||||
@param Mem64ResStatus Status of 64-bit memory resource node.
|
@param Mem64ResStatus Status of 64-bit memory resource node.
|
||||||
@param PMem64ResStatus Status of 64-bit Prefetchable memory resource node.
|
@param PMem64ResStatus Status of 64-bit Prefetchable memory resource node.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Successfully adjusted resoruce on host bridge.
|
@retval EFI_SUCCESS Successfully adjusted resource on host bridge.
|
||||||
@retval EFI_ABORTED Host bridge hasn't this resource type or no resource be adjusted.
|
@retval EFI_ABORTED Host bridge hasn't this resource type or no resource be adjusted.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -1091,7 +1091,7 @@ PciHostBridgeAdjustAllocation (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Summary requests for all resource type, and contruct ACPI resource
|
Summary requests for all resource type, and construct ACPI resource
|
||||||
requestor instance.
|
requestor instance.
|
||||||
|
|
||||||
@param Bridge detecting bridge
|
@param Bridge detecting bridge
|
||||||
|
@ -1103,7 +1103,7 @@ PciHostBridgeAdjustAllocation (
|
||||||
@param Config Output buffer holding new constructed APCI resource requestor
|
@param Config Output buffer holding new constructed APCI resource requestor
|
||||||
|
|
||||||
@retval EFI_SUCCESS Successfully constructed ACPI resource.
|
@retval EFI_SUCCESS Successfully constructed ACPI resource.
|
||||||
@retval EFI_OUT_OF_RESOURCES No memory availabe.
|
@retval EFI_OUT_OF_RESOURCES No memory available.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
PCI bus enumeration logic function declaration for PCI bus module.
|
PCI bus enumeration logic function declaration for PCI bus module.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -218,7 +218,7 @@ GetMaxResourceConsumerDevice (
|
||||||
@param Mem64ResStatus Status of 64-bit memory resource node.
|
@param Mem64ResStatus Status of 64-bit memory resource node.
|
||||||
@param PMem64ResStatus Status of 64-bit Prefetchable memory resource node.
|
@param PMem64ResStatus Status of 64-bit Prefetchable memory resource node.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Successfully adjusted resoruce on host bridge.
|
@retval EFI_SUCCESS Successfully adjusted resource on host bridge.
|
||||||
@retval EFI_ABORTED Host bridge hasn't this resource type or no resource be adjusted.
|
@retval EFI_ABORTED Host bridge hasn't this resource type or no resource be adjusted.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
@ -237,7 +237,7 @@ PciHostBridgeAdjustAllocation (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Summary requests for all resource type, and contruct ACPI resource
|
Summary requests for all resource type, and construct ACPI resource
|
||||||
requestor instance.
|
requestor instance.
|
||||||
|
|
||||||
@param Bridge detecting bridge
|
@param Bridge detecting bridge
|
||||||
|
@ -249,7 +249,7 @@ PciHostBridgeAdjustAllocation (
|
||||||
@param Config Output buffer holding new constructed APCI resource requestor
|
@param Config Output buffer holding new constructed APCI resource requestor
|
||||||
|
|
||||||
@retval EFI_SUCCESS Successfully constructed ACPI resource.
|
@retval EFI_SUCCESS Successfully constructed ACPI resource.
|
||||||
@retval EFI_OUT_OF_RESOURCES No memory availabe.
|
@retval EFI_OUT_OF_RESOURCES No memory available.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
|
|
@ -522,7 +522,7 @@ PciHostBridgeResourceAllocator (
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Based on the all the resource tree, contruct ACPI resource node to
|
// Based on the all the resource tree, construct ACPI resource node to
|
||||||
// submit the resource aperture to pci host bridge protocol
|
// submit the resource aperture to pci host bridge protocol
|
||||||
//
|
//
|
||||||
Status = ConstructAcpiResourceRequestor (
|
Status = ConstructAcpiResourceRequestor (
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Header file for PciSioSerial Driver
|
Header file for PciSioSerial Driver
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -541,7 +541,7 @@ SerialFifoRemove (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads and writes all avaliable data.
|
Reads and writes all available data.
|
||||||
|
|
||||||
@param SerialDevice The device to flush
|
@param SerialDevice The device to flush
|
||||||
|
|
||||||
|
|
|
@ -286,7 +286,7 @@ SerialFifoRemove (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Reads and writes all avaliable data.
|
Reads and writes all available data.
|
||||||
|
|
||||||
@param SerialDevice The device to transmit.
|
@param SerialDevice The device to transmit.
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
The routine procedure for uhci memory allocate/free.
|
The routine procedure for uhci memory allocate/free.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -532,7 +532,7 @@ UsbHcFreeMem (
|
||||||
Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->Buf) / USBHC_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
||||||
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
PEIM to produce gPeiUsbHostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
PEIM to produce gPeiUsbHostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
||||||
which is used to enable recovery function from USB Drivers.
|
which is used to enable recovery function from USB Drivers.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved. <BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved. <BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -3120,7 +3120,7 @@ UhcFreePool (
|
||||||
StartBitPos = (UINT8) (((Pool - TempHeaderPtr->MemoryBlockPtr) / 32) % 8);
|
StartBitPos = (UINT8) (((Pool - TempHeaderPtr->MemoryBlockPtr) / 32) % 8);
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Index = StartBytePos, Index2 = StartBitPos, Count = 0; Count < (RealAllocSize / 32); Count++) {
|
for (Index = StartBytePos, Index2 = StartBitPos, Count = 0; Count < (RealAllocSize / 32); Count++) {
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Routine procedures for memory allocate/free.
|
Routine procedures for memory allocate/free.
|
||||||
|
|
||||||
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -567,7 +567,7 @@ UsbHcFreeMem (
|
||||||
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
||||||
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
||||||
which is used to enable recovery function from USB Drivers.
|
which is used to enable recovery function from USB Drivers.
|
||||||
|
|
||||||
Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -528,7 +528,7 @@ UsbHcFreeMem (
|
||||||
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->BufHost) / USBHC_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / USBHC_MEM_UNIT); Count++) {
|
||||||
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (USB_HC_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -424,7 +424,7 @@ EmmcPeimFreeMem (
|
||||||
Bit = ((ToFree - Block->Buf) / EMMC_PEIM_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->Buf) / EMMC_PEIM_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / EMMC_PEIM_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / EMMC_PEIM_MEM_UNIT); Count++) {
|
||||||
ASSERT (EMMC_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (EMMC_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -424,7 +424,7 @@ SdPeimFreeMem (
|
||||||
Bit = ((ToFree - Block->Buf) / SD_PEIM_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->Buf) / SD_PEIM_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / SD_PEIM_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / SD_PEIM_MEM_UNIT); Count++) {
|
||||||
ASSERT (SD_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (SD_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -424,7 +424,7 @@ UfsPeimFreeMem (
|
||||||
Bit = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) % 8;
|
Bit = ((ToFree - Block->Buf) / UFS_PEIM_MEM_UNIT) % 8;
|
||||||
|
|
||||||
//
|
//
|
||||||
// reset associated bits in bit arry
|
// reset associated bits in bit array
|
||||||
//
|
//
|
||||||
for (Count = 0; Count < (AllocSize / UFS_PEIM_MEM_UNIT); Count++) {
|
for (Count = 0; Count < (AllocSize / UFS_PEIM_MEM_UNIT); Count++) {
|
||||||
ASSERT (UFS_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
ASSERT (UFS_PEIM_MEM_BIT_IS_SET (Block->Bits[Byte], Bit));
|
||||||
|
|
|
@ -2430,7 +2430,7 @@ OpenSectionStream (
|
||||||
non-null on input, then the buffer is caller
|
non-null on input, then the buffer is caller
|
||||||
allocated. If Buffer is NULL, then the buffer
|
allocated. If Buffer is NULL, then the buffer
|
||||||
is callee allocated. In either case, the
|
is callee allocated. In either case, the
|
||||||
requried buffer size is returned in *BufferSize.
|
required buffer size is returned in *BufferSize.
|
||||||
@param BufferSize On input, indicates the size of *Buffer if
|
@param BufferSize On input, indicates the size of *Buffer if
|
||||||
*Buffer is non-null on input. On output,
|
*Buffer is non-null on input. On output,
|
||||||
indicates the required size (allocated size if
|
indicates the required size (allocated size if
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Core image handling services to load and unload PeImage.
|
Core image handling services to load and unload PeImage.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -258,11 +258,11 @@ CoreReadImageFile (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
To check memory usage bit map arry to figure out if the memory range the image will be loaded in is available or not. If
|
To check memory usage bit map array to figure out if the memory range the image will be loaded in is available or not. If
|
||||||
memory range is avaliable, the function will mark the correponding bits to 1 which indicates the memory range is used.
|
memory range is available, the function will mark the corresponding bits to 1 which indicates the memory range is used.
|
||||||
The function is only invoked when load modules at fixed address feature is enabled.
|
The function is only invoked when load modules at fixed address feature is enabled.
|
||||||
|
|
||||||
@param ImageBase The base addres the image will be loaded at.
|
@param ImageBase The base address the image will be loaded at.
|
||||||
@param ImageSize The size of the image
|
@param ImageSize The size of the image
|
||||||
|
|
||||||
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
||||||
|
@ -332,13 +332,13 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Get the fixed loadding address from image header assigned by build tool. This function only be called
|
Get the fixed loading address from image header assigned by build tool. This function only be called
|
||||||
when Loading module at Fixed address feature enabled.
|
when Loading module at Fixed address feature enabled.
|
||||||
|
|
||||||
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
||||||
image that needs to be examined by this function.
|
image that needs to be examined by this function.
|
||||||
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
||||||
@retval EFI_NOT_FOUND The image has no assigned fixed loadding address.
|
@retval EFI_NOT_FOUND The image has no assigned fixed loading address.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -400,7 +400,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
// Build tool will save the address in PointerToRelocations & PointerToLineNumbers fields in the first section header
|
// Build tool will save the address in PointerToRelocations & PointerToLineNumbers fields in the first section header
|
||||||
// that doesn't point to code section in image header, as well as ImageBase field of image header. And there is an
|
// that doesn't point to code section in image header, as well as ImageBase field of image header. And there is an
|
||||||
// assumption that when the feature is enabled, if a module is assigned a loading address by tools, PointerToRelocations
|
// assumption that when the feature is enabled, if a module is assigned a loading address by tools, PointerToRelocations
|
||||||
// & PointerToLineNumbers fields should NOT be Zero, or else, these 2 fileds should be set to Zero
|
// & PointerToLineNumbers fields should NOT be Zero, or else, these 2 fields should be set to Zero
|
||||||
//
|
//
|
||||||
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
||||||
if (ValueInSectionHeader != 0) {
|
if (ValueInSectionHeader != 0) {
|
||||||
|
@ -413,7 +413,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
ImageContext->ImageAddress = gLoadModuleAtFixAddressConfigurationTable.DxeCodeTopAddress + (INT64)(INTN)ImageContext->ImageAddress;
|
ImageContext->ImageAddress = gLoadModuleAtFixAddressConfigurationTable.DxeCodeTopAddress + (INT64)(INTN)ImageContext->ImageAddress;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Check if the memory range is avaliable.
|
// Check if the memory range is available.
|
||||||
//
|
//
|
||||||
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (ImageContext->ImageAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment));
|
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (ImageContext->ImageAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment));
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
3) A support protocol is not found, and the data is not available to be read
|
3) A support protocol is not found, and the data is not available to be read
|
||||||
without it. This results in EFI_PROTOCOL_ERROR.
|
without it. This results in EFI_PROTOCOL_ERROR.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -1166,7 +1166,7 @@ FindStreamNode (
|
||||||
non-null on input, then the buffer is caller
|
non-null on input, then the buffer is caller
|
||||||
allocated. If Buffer is NULL, then the buffer
|
allocated. If Buffer is NULL, then the buffer
|
||||||
is callee allocated. In either case, the
|
is callee allocated. In either case, the
|
||||||
requried buffer size is returned in *BufferSize.
|
required buffer size is returned in *BufferSize.
|
||||||
@param BufferSize On input, indicates the size of *Buffer if
|
@param BufferSize On input, indicates the size of *Buffer if
|
||||||
*Buffer is non-null on input. On output,
|
*Buffer is non-null on input. On output,
|
||||||
indicates the required size (allocated size if
|
indicates the required size (allocated size if
|
||||||
|
|
|
@ -139,12 +139,12 @@ GetImageReadFunction (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
To check memory usage bit map arry to figure out if the memory range the image will be loaded in is available or not. If
|
To check memory usage bit map array to figure out if the memory range the image will be loaded in is available or not. If
|
||||||
memory range is avaliable, the function will mark the correponding bits to 1 which indicates the memory range is used.
|
memory range is available, the function will mark the corresponding bits to 1 which indicates the memory range is used.
|
||||||
The function is only invoked when load modules at fixed address feature is enabled.
|
The function is only invoked when load modules at fixed address feature is enabled.
|
||||||
|
|
||||||
@param Private Pointer to the private data passed in from caller
|
@param Private Pointer to the private data passed in from caller
|
||||||
@param ImageBase The base addres the image will be loaded at.
|
@param ImageBase The base address the image will be loaded at.
|
||||||
@param ImageSize The size of the image
|
@param ImageSize The size of the image
|
||||||
|
|
||||||
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
||||||
|
@ -207,7 +207,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Get the fixed loadding address from image header assigned by build tool. This function only be called
|
Get the fixed loading address from image header assigned by build tool. This function only be called
|
||||||
when Loading module at Fixed address feature enabled.
|
when Loading module at Fixed address feature enabled.
|
||||||
|
|
||||||
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
||||||
|
@ -215,7 +215,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||||
@param Private Pointer to the private data passed in from caller
|
@param Private Pointer to the private data passed in from caller
|
||||||
|
|
||||||
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
||||||
@retval EFI_NOT_FOUND The image has no assigned fixed loadding address.
|
@retval EFI_NOT_FOUND The image has no assigned fixed loading address.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -228,14 +228,14 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
||||||
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
||||||
EFI_PHYSICAL_ADDRESS FixLoaddingAddress;
|
EFI_PHYSICAL_ADDRESS FixLoadingAddress;
|
||||||
UINT16 Index;
|
UINT16 Index;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
UINT16 NumberOfSections;
|
UINT16 NumberOfSections;
|
||||||
UINT64 ValueInSectionHeader;
|
UINT64 ValueInSectionHeader;
|
||||||
|
|
||||||
|
|
||||||
FixLoaddingAddress = 0;
|
FixLoadingAddress = 0;
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -244,7 +244,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset);
|
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset);
|
||||||
if (ImageContext->IsTeImage) {
|
if (ImageContext->IsTeImage) {
|
||||||
//
|
//
|
||||||
// for TE image, the fix loadding address is saved in first section header that doesn't point
|
// for TE image, the fix loading address is saved in first section header that doesn't point
|
||||||
// to code section.
|
// to code section.
|
||||||
//
|
//
|
||||||
SectionHeaderOffset = sizeof (EFI_TE_IMAGE_HEADER);
|
SectionHeaderOffset = sizeof (EFI_TE_IMAGE_HEADER);
|
||||||
|
@ -286,7 +286,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
// for XIP PEIM, ImageBase field holds the image base address running on the Flash. And PointerToRelocations & PointerToLineNumbers
|
// for XIP PEIM, ImageBase field holds the image base address running on the Flash. And PointerToRelocations & PointerToLineNumbers
|
||||||
// hold the image base address when it is shadow to the memory. And there is an assumption that when the feature is enabled, if a
|
// hold the image base address when it is shadow to the memory. And there is an assumption that when the feature is enabled, if a
|
||||||
// module is assigned a loading address by tools, PointerToRelocations & PointerToLineNumbers fields should NOT be Zero, or
|
// module is assigned a loading address by tools, PointerToRelocations & PointerToLineNumbers fields should NOT be Zero, or
|
||||||
// else, these 2 fileds should be set to Zero
|
// else, these 2 fields should be set to Zero
|
||||||
//
|
//
|
||||||
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
||||||
if (ValueInSectionHeader != 0) {
|
if (ValueInSectionHeader != 0) {
|
||||||
|
@ -296,32 +296,32 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
if ((INT64)PcdGet64(PcdLoadModuleAtFixAddressEnable) > 0) {
|
if ((INT64)PcdGet64(PcdLoadModuleAtFixAddressEnable) > 0) {
|
||||||
//
|
//
|
||||||
// When LMFA feature is configured as Load Module at Fixed Absolute Address mode, PointerToRelocations & PointerToLineNumbers field
|
// When LMFA feature is configured as Load Module at Fixed Absolute Address mode, PointerToRelocations & PointerToLineNumbers field
|
||||||
// hold the absolute address of image base runing in memory
|
// hold the absolute address of image base running in memory
|
||||||
//
|
//
|
||||||
FixLoaddingAddress = ValueInSectionHeader;
|
FixLoadingAddress = ValueInSectionHeader;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// When LMFA feature is configured as Load Module at Fixed offset mode, PointerToRelocations & PointerToLineNumbers field
|
// When LMFA feature is configured as Load Module at Fixed offset mode, PointerToRelocations & PointerToLineNumbers field
|
||||||
// hold the offset relative to a platform-specific top address.
|
// hold the offset relative to a platform-specific top address.
|
||||||
//
|
//
|
||||||
FixLoaddingAddress = (EFI_PHYSICAL_ADDRESS)(Private->LoadModuleAtFixAddressTopAddress + (INT64)ValueInSectionHeader);
|
FixLoadingAddress = (EFI_PHYSICAL_ADDRESS)(Private->LoadModuleAtFixAddressTopAddress + (INT64)ValueInSectionHeader);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Check if the memory range is avaliable.
|
// Check if the memory range is available.
|
||||||
//
|
//
|
||||||
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (Private, FixLoaddingAddress, (UINT32) ImageContext->ImageSize);
|
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (Private, FixLoadingAddress, (UINT32) ImageContext->ImageSize);
|
||||||
if (!EFI_ERROR(Status)) {
|
if (!EFI_ERROR(Status)) {
|
||||||
//
|
//
|
||||||
// The assigned address is valid. Return the specified loadding address
|
// The assigned address is valid. Return the specified loading address
|
||||||
//
|
//
|
||||||
ImageContext->ImageAddress = FixLoaddingAddress;
|
ImageContext->ImageAddress = FixLoadingAddress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
||||||
}
|
}
|
||||||
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address 0x%11p. Status= %r \n", (VOID *)(UINTN)FixLoaddingAddress, Status));
|
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address 0x%11p. Status= %r \n", (VOID *)(UINTN)FixLoadingAddress, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
Depex - Dependency Expresion.
|
Depex - Dependency Expresion.
|
||||||
|
|
||||||
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
|
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
|
||||||
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
distribution. The full text of the license may be found at
|
distribution. The full text of the license may be found at
|
||||||
|
@ -126,17 +126,17 @@ EFI_SECURITY2_ARCH_PROTOCOL *mSecurity2 = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
// The global variable is defined for Loading modules at fixed address feature to track the SMM code
|
// The global variable is defined for Loading modules at fixed address feature to track the SMM code
|
||||||
// memory range usage. It is a bit mapped array in which every bit indicates the correspoding
|
// memory range usage. It is a bit mapped array in which every bit indicates the corresponding
|
||||||
// memory page available or not.
|
// memory page available or not.
|
||||||
//
|
//
|
||||||
GLOBAL_REMOVE_IF_UNREFERENCED UINT64 *mSmmCodeMemoryRangeUsageBitMap=NULL;
|
GLOBAL_REMOVE_IF_UNREFERENCED UINT64 *mSmmCodeMemoryRangeUsageBitMap=NULL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
To check memory usage bit map array to figure out if the memory range in which the image will be loaded is available or not. If
|
To check memory usage bit map array to figure out if the memory range in which the image will be loaded is available or not. If
|
||||||
memory range is avaliable, the function will mark the correponding bits to 1 which indicates the memory range is used.
|
memory range is available, the function will mark the corresponding bits to 1 which indicates the memory range is used.
|
||||||
The function is only invoked when load modules at fixed address feature is enabled.
|
The function is only invoked when load modules at fixed address feature is enabled.
|
||||||
|
|
||||||
@param ImageBase The base addres the image will be loaded at.
|
@param ImageBase The base address the image will be loaded at.
|
||||||
@param ImageSize The size of the image
|
@param ImageSize The size of the image
|
||||||
|
|
||||||
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
@retval EFI_SUCCESS The memory range the image will be loaded in is available
|
||||||
|
@ -203,13 +203,13 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
Get the fixed loadding address from image header assigned by build tool. This function only be called
|
Get the fixed loading address from image header assigned by build tool. This function only be called
|
||||||
when Loading module at Fixed address feature enabled.
|
when Loading module at Fixed address feature enabled.
|
||||||
|
|
||||||
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
||||||
image that needs to be examined by this function.
|
image that needs to be examined by this function.
|
||||||
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
||||||
@retval EFI_NOT_FOUND The image has no assigned fixed loadding address.
|
@retval EFI_NOT_FOUND The image has no assigned fixed loading address.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -217,82 +217,82 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN SectionHeaderOffset;
|
UINTN SectionHeaderOffset;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
||||||
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
||||||
EFI_PHYSICAL_ADDRESS FixLoaddingAddress;
|
EFI_PHYSICAL_ADDRESS FixLoadingAddress;
|
||||||
UINT16 Index;
|
UINT16 Index;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
UINT16 NumberOfSections;
|
UINT16 NumberOfSections;
|
||||||
UINT64 ValueInSectionHeader;
|
UINT64 ValueInSectionHeader;
|
||||||
|
|
||||||
FixLoaddingAddress = 0;
|
FixLoadingAddress = 0;
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get PeHeader pointer
|
// Get PeHeader pointer
|
||||||
//
|
//
|
||||||
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset);
|
ImgHdr = (EFI_IMAGE_OPTIONAL_HEADER_UNION *)((CHAR8* )ImageContext->Handle + ImageContext->PeCoffHeaderOffset);
|
||||||
SectionHeaderOffset = (UINTN)(
|
SectionHeaderOffset = (UINTN)(
|
||||||
ImageContext->PeCoffHeaderOffset +
|
ImageContext->PeCoffHeaderOffset +
|
||||||
sizeof (UINT32) +
|
sizeof (UINT32) +
|
||||||
sizeof (EFI_IMAGE_FILE_HEADER) +
|
sizeof (EFI_IMAGE_FILE_HEADER) +
|
||||||
ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader
|
ImgHdr->Pe32.FileHeader.SizeOfOptionalHeader
|
||||||
);
|
);
|
||||||
NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections;
|
NumberOfSections = ImgHdr->Pe32.FileHeader.NumberOfSections;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get base address from the first section header that doesn't point to code section.
|
// Get base address from the first section header that doesn't point to code section.
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < NumberOfSections; Index++) {
|
for (Index = 0; Index < NumberOfSections; Index++) {
|
||||||
//
|
//
|
||||||
// Read section header from file
|
// Read section header from file
|
||||||
//
|
//
|
||||||
Size = sizeof (EFI_IMAGE_SECTION_HEADER);
|
Size = sizeof (EFI_IMAGE_SECTION_HEADER);
|
||||||
Status = ImageContext->ImageRead (
|
Status = ImageContext->ImageRead (
|
||||||
ImageContext->Handle,
|
ImageContext->Handle,
|
||||||
SectionHeaderOffset,
|
SectionHeaderOffset,
|
||||||
&Size,
|
&Size,
|
||||||
&SectionHeader
|
&SectionHeader
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
|
|
||||||
if ((SectionHeader.Characteristics & EFI_IMAGE_SCN_CNT_CODE) == 0) {
|
if ((SectionHeader.Characteristics & EFI_IMAGE_SCN_CNT_CODE) == 0) {
|
||||||
//
|
//
|
||||||
// Build tool will save the address in PointerToRelocations & PointerToLineNumbers fields in the first section header
|
// Build tool will save the address in PointerToRelocations & PointerToLineNumbers fields in the first section header
|
||||||
// that doesn't point to code section in image header.So there is an assumption that when the feature is enabled,
|
// that doesn't point to code section in image header.So there is an assumption that when the feature is enabled,
|
||||||
// if a module with a loading address assigned by tools, the PointerToRelocations & PointerToLineNumbers fields
|
// if a module with a loading address assigned by tools, the PointerToRelocations & PointerToLineNumbers fields
|
||||||
// should not be Zero, or else, these 2 fileds should be set to Zero
|
// should not be Zero, or else, these 2 fields should be set to Zero
|
||||||
//
|
//
|
||||||
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
||||||
if (ValueInSectionHeader != 0) {
|
if (ValueInSectionHeader != 0) {
|
||||||
//
|
//
|
||||||
// Found first section header that doesn't point to code section in which uild tool saves the
|
// Found first section header that doesn't point to code section in which build tool saves the
|
||||||
// offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields
|
// offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields
|
||||||
//
|
//
|
||||||
FixLoaddingAddress = (EFI_PHYSICAL_ADDRESS)(gLoadModuleAtFixAddressSmramBase + (INT64)ValueInSectionHeader);
|
FixLoadingAddress = (EFI_PHYSICAL_ADDRESS)(gLoadModuleAtFixAddressSmramBase + (INT64)ValueInSectionHeader);
|
||||||
//
|
//
|
||||||
// Check if the memory range is avaliable.
|
// Check if the memory range is available.
|
||||||
//
|
//
|
||||||
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (FixLoaddingAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment));
|
Status = CheckAndMarkFixLoadingMemoryUsageBitMap (FixLoadingAddress, (UINTN)(ImageContext->ImageSize + ImageContext->SectionAlignment));
|
||||||
if (!EFI_ERROR(Status)) {
|
if (!EFI_ERROR(Status)) {
|
||||||
//
|
//
|
||||||
// The assigned address is valid. Return the specified loadding address
|
// The assigned address is valid. Return the specified loading address
|
||||||
//
|
//
|
||||||
ImageContext->ImageAddress = FixLoaddingAddress;
|
ImageContext->ImageAddress = FixLoadingAddress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
||||||
}
|
}
|
||||||
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address %x, Status = %r\n", FixLoaddingAddress, Status));
|
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address %x, Status = %r\n", FixLoadingAddress, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
Loads an EFI image into SMRAM.
|
Loads an EFI image into SMRAM.
|
||||||
|
|
|
@ -256,7 +256,7 @@ SmmReadyToBootHandler (
|
||||||
or if gEfiEventReadyToBootGuid is signalled. This function unregisters the
|
or if gEfiEventReadyToBootGuid is signalled. This function unregisters the
|
||||||
Software SMIs that are nor required after SMRAM is locked and installs the
|
Software SMIs that are nor required after SMRAM is locked and installs the
|
||||||
SMM Ready To Lock Protocol so SMM Drivers are informed that SMRAM is about
|
SMM Ready To Lock Protocol so SMM Drivers are informed that SMRAM is about
|
||||||
to be locked. It also verifies the the SMM CPU I/O 2 Protocol has been installed
|
to be locked. It also verifies the SMM CPU I/O 2 Protocol has been installed
|
||||||
and NULLs gBS and gST because they can not longer be used after SMRAM is locked.
|
and NULLs gBS and gST because they can not longer be used after SMRAM is locked.
|
||||||
|
|
||||||
@param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
|
@param DispatchHandle The unique handle assigned to this handler by SmiHandlerRegister().
|
||||||
|
|
|
@ -269,7 +269,7 @@ EFI_SMM_COMMUNICATE_HEADER mCommunicateHeader;
|
||||||
//
|
//
|
||||||
SMM_IPL_EVENT_NOTIFICATION mSmmIplEvents[] = {
|
SMM_IPL_EVENT_NOTIFICATION mSmmIplEvents[] = {
|
||||||
//
|
//
|
||||||
// Declare protocol notification on the SMM Configuration protocol. When this notification is etablished,
|
// Declare protocol notification on the SMM Configuration protocol. When this notification is established,
|
||||||
// the associated event is immediately signalled, so the notification function will be executed and the
|
// the associated event is immediately signalled, so the notification function will be executed and the
|
||||||
// SMM Configuration Protocol will be found if it is already in the handle database.
|
// SMM Configuration Protocol will be found if it is already in the handle database.
|
||||||
//
|
//
|
||||||
|
@ -281,7 +281,7 @@ SMM_IPL_EVENT_NOTIFICATION mSmmIplEvents[] = {
|
||||||
//
|
//
|
||||||
{ TRUE, TRUE, &gEfiDxeSmmReadyToLockProtocolGuid, SmmIplReadyToLockEventNotify, &gEfiDxeSmmReadyToLockProtocolGuid, TPL_CALLBACK, NULL },
|
{ TRUE, TRUE, &gEfiDxeSmmReadyToLockProtocolGuid, SmmIplReadyToLockEventNotify, &gEfiDxeSmmReadyToLockProtocolGuid, TPL_CALLBACK, NULL },
|
||||||
//
|
//
|
||||||
// Declare event notification on EndOfDxe event. When this notification is etablished,
|
// Declare event notification on EndOfDxe event. When this notification is established,
|
||||||
// the associated event is immediately signalled, so the notification function will be executed and the
|
// the associated event is immediately signalled, so the notification function will be executed and the
|
||||||
// SMM End Of Dxe Protocol will be found if it is already in the handle database.
|
// SMM End Of Dxe Protocol will be found if it is already in the handle database.
|
||||||
//
|
//
|
||||||
|
@ -810,13 +810,13 @@ SmmIplSetVirtualAddressNotify (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the fixed loadding address from image header assigned by build tool. This function only be called
|
Get the fixed loading address from image header assigned by build tool. This function only be called
|
||||||
when Loading module at Fixed address feature enabled.
|
when Loading module at Fixed address feature enabled.
|
||||||
|
|
||||||
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
@param ImageContext Pointer to the image context structure that describes the PE/COFF
|
||||||
image that needs to be examined by this function.
|
image that needs to be examined by this function.
|
||||||
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
@retval EFI_SUCCESS An fixed loading address is assigned to this image by build tools .
|
||||||
@retval EFI_NOT_FOUND The image has no assigned fixed loadding address.
|
@retval EFI_NOT_FOUND The image has no assigned fixed loading address.
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
GetPeCoffImageFixLoadingAssignedAddress(
|
GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
|
@ -827,7 +827,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
EFI_IMAGE_SECTION_HEADER SectionHeader;
|
||||||
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
EFI_IMAGE_OPTIONAL_HEADER_UNION *ImgHdr;
|
||||||
EFI_PHYSICAL_ADDRESS FixLoaddingAddress;
|
EFI_PHYSICAL_ADDRESS FixLoadingAddress;
|
||||||
UINT16 Index;
|
UINT16 Index;
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
UINT16 NumberOfSections;
|
UINT16 NumberOfSections;
|
||||||
|
@ -839,7 +839,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
//
|
//
|
||||||
SmmCodeSize = EFI_PAGES_TO_SIZE (PcdGet32(PcdLoadFixAddressSmmCodePageNumber));
|
SmmCodeSize = EFI_PAGES_TO_SIZE (PcdGet32(PcdLoadFixAddressSmmCodePageNumber));
|
||||||
|
|
||||||
FixLoaddingAddress = 0;
|
FixLoadingAddress = 0;
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
SmramBase = mCurrentSmramRange->CpuStart;
|
SmramBase = mCurrentSmramRange->CpuStart;
|
||||||
//
|
//
|
||||||
|
@ -879,21 +879,21 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
// Build tool saves the offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields in the
|
// Build tool saves the offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields in the
|
||||||
// first section header that doesn't point to code section in image header. And there is an assumption that when the
|
// first section header that doesn't point to code section in image header. And there is an assumption that when the
|
||||||
// feature is enabled, if a module is assigned a loading address by tools, PointerToRelocations & PointerToLineNumbers
|
// feature is enabled, if a module is assigned a loading address by tools, PointerToRelocations & PointerToLineNumbers
|
||||||
// fields should NOT be Zero, or else, these 2 fileds should be set to Zero
|
// fields should NOT be Zero, or else, these 2 fields should be set to Zero
|
||||||
//
|
//
|
||||||
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
ValueInSectionHeader = ReadUnaligned64((UINT64*)&SectionHeader.PointerToRelocations);
|
||||||
if (ValueInSectionHeader != 0) {
|
if (ValueInSectionHeader != 0) {
|
||||||
//
|
//
|
||||||
// Found first section header that doesn't point to code section in which uild tool saves the
|
// Found first section header that doesn't point to code section in which build tool saves the
|
||||||
// offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields
|
// offset to SMRAM base as image base in PointerToRelocations & PointerToLineNumbers fields
|
||||||
//
|
//
|
||||||
FixLoaddingAddress = (EFI_PHYSICAL_ADDRESS)(SmramBase + (INT64)ValueInSectionHeader);
|
FixLoadingAddress = (EFI_PHYSICAL_ADDRESS)(SmramBase + (INT64)ValueInSectionHeader);
|
||||||
|
|
||||||
if (SmramBase + SmmCodeSize > FixLoaddingAddress && SmramBase <= FixLoaddingAddress) {
|
if (SmramBase + SmmCodeSize > FixLoadingAddress && SmramBase <= FixLoadingAddress) {
|
||||||
//
|
//
|
||||||
// The assigned address is valid. Return the specified loadding address
|
// The assigned address is valid. Return the specified loading address
|
||||||
//
|
//
|
||||||
ImageContext->ImageAddress = FixLoaddingAddress;
|
ImageContext->ImageAddress = FixLoadingAddress;
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -901,7 +901,7 @@ GetPeCoffImageFixLoadingAssignedAddress(
|
||||||
}
|
}
|
||||||
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
SectionHeaderOffset += sizeof (EFI_IMAGE_SECTION_HEADER);
|
||||||
}
|
}
|
||||||
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address %x, Status = %r \n", FixLoaddingAddress, Status));
|
DEBUG ((EFI_D_INFO|EFI_D_LOAD, "LOADING MODULE FIXED INFO: Loading module at fixed address %x, Status = %r \n", FixLoadingAddress, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,7 +47,7 @@ SmmInitializeMemoryServices (
|
||||||
}
|
}
|
||||||
CurrentSmramRangesIndex = 0;
|
CurrentSmramRangesIndex = 0;
|
||||||
//
|
//
|
||||||
// If Loadding Module At fixed Address feature is enabled, cache the SMRAM base here
|
// If Loading Module At fixed Address feature is enabled, cache the SMRAM base here
|
||||||
//
|
//
|
||||||
if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0) {
|
if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0) {
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
EBC VM Test protocol for test purposes.
|
EBC VM Test protocol for test purposes.
|
||||||
|
|
||||||
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -92,7 +92,7 @@ EFI_STATUS
|
||||||
@param[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
|
@param[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
|
||||||
@param[in] AsmText A pointer to EBC ASM text code.
|
@param[in] AsmText A pointer to EBC ASM text code.
|
||||||
@param[out] Buffer Buffer to store the instruction.
|
@param[out] Buffer Buffer to store the instruction.
|
||||||
@param[out] BufferLen Size of buffer that is requried to store data.
|
@param[out] BufferLen Size of buffer that is required to store data.
|
||||||
|
|
||||||
@retval EFI_UNSUPPORTED This functionality is unsupported.
|
@retval EFI_UNSUPPORTED This functionality is unsupported.
|
||||||
@retval EFI_SUCCESS Successfully convert AsmText to the instruction.
|
@retval EFI_SUCCESS Successfully convert AsmText to the instruction.
|
||||||
|
@ -113,7 +113,7 @@ EFI_STATUS
|
||||||
@param[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
|
@param[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
|
||||||
@param[out] AsmText Contain the disasm text.
|
@param[out] AsmText Contain the disasm text.
|
||||||
@param[out] Buffer Buffer to store the instruction.
|
@param[out] Buffer Buffer to store the instruction.
|
||||||
@param[out] BufferLen Size of buffer that is requried to store data.
|
@param[out] BufferLen Size of buffer that is required to store data.
|
||||||
|
|
||||||
@retval EFI_UNSUPPORTED This functionality is unsupported.
|
@retval EFI_UNSUPPORTED This functionality is unsupported.
|
||||||
@retval EFI_SUCCESS Successfully dump the executed instruction.
|
@retval EFI_SUCCESS Successfully dump the executed instruction.
|
||||||
|
|
|
@ -179,7 +179,7 @@ BmmSetConsoleMode (
|
||||||
|
|
||||||
if (IsSetupMode) {
|
if (IsSetupMode) {
|
||||||
//
|
//
|
||||||
// The requried resolution and text mode is setup mode.
|
// The required resolution and text mode is setup mode.
|
||||||
//
|
//
|
||||||
NewHorizontalResolution = mBmmSetupHorizontalResolution;
|
NewHorizontalResolution = mBmmSetupHorizontalResolution;
|
||||||
NewVerticalResolution = mBmmSetupVerticalResolution;
|
NewVerticalResolution = mBmmSetupVerticalResolution;
|
||||||
|
@ -235,7 +235,7 @@ BmmSetConsoleMode (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// If current text mode is different from requried text mode. Set new video mode
|
// If current text mode is different from required text mode. Set new video mode
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < MaxTextMode; Index++) {
|
for (Index = 0; Index < MaxTextMode; Index++) {
|
||||||
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
||||||
|
@ -260,7 +260,7 @@ BmmSetConsoleMode (
|
||||||
}
|
}
|
||||||
if (Index == MaxTextMode) {
|
if (Index == MaxTextMode) {
|
||||||
//
|
//
|
||||||
// If requried text mode is not supported, return error.
|
// If required text mode is not supported, return error.
|
||||||
//
|
//
|
||||||
FreePool (Info);
|
FreePool (Info);
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
|
|
|
@ -143,7 +143,7 @@ BmSetConsoleMode (
|
||||||
|
|
||||||
if (IsSetupMode) {
|
if (IsSetupMode) {
|
||||||
//
|
//
|
||||||
// The requried resolution and text mode is setup mode.
|
// The required resolution and text mode is setup mode.
|
||||||
//
|
//
|
||||||
NewHorizontalResolution = mBmSetupHorizontalResolution;
|
NewHorizontalResolution = mBmSetupHorizontalResolution;
|
||||||
NewVerticalResolution = mBmSetupVerticalResolution;
|
NewVerticalResolution = mBmSetupVerticalResolution;
|
||||||
|
@ -199,7 +199,7 @@ BmSetConsoleMode (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// If current text mode is different from requried text mode. Set new video mode
|
// If current text mode is different from required text mode. Set new video mode
|
||||||
//
|
//
|
||||||
for (Index = 0; Index < MaxTextMode; Index++) {
|
for (Index = 0; Index < MaxTextMode; Index++) {
|
||||||
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
Status = SimpleTextOut->QueryMode (SimpleTextOut, Index, &CurrentColumn, &CurrentRow);
|
||||||
|
@ -224,7 +224,7 @@ BmSetConsoleMode (
|
||||||
}
|
}
|
||||||
if (Index == MaxTextMode) {
|
if (Index == MaxTextMode) {
|
||||||
//
|
//
|
||||||
// If requried text mode is not supported, return error.
|
// If required text mode is not supported, return error.
|
||||||
//
|
//
|
||||||
FreePool (Info);
|
FreePool (Info);
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
never removed. Such design ensures sytem function well during none console
|
never removed. Such design ensures sytem function well during none console
|
||||||
device situation.
|
device situation.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -2516,7 +2516,7 @@ ConSplitterGetIntersectionBetweenConOutAndStrErr (
|
||||||
|
|
||||||
//
|
//
|
||||||
// Find the intersection of the two set of modes. If they actually intersect, the
|
// Find the intersection of the two set of modes. If they actually intersect, the
|
||||||
// correponding entry in the map table is set to 1.
|
// corresponding entry in the map table is set to 1.
|
||||||
//
|
//
|
||||||
Mode = 0;
|
Mode = 0;
|
||||||
while (Mode < ConOutMaxMode) {
|
while (Mode < ConOutMaxMode) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
ARP driver functions.
|
ARP driver functions.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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<BR>
|
which accompanies this distribution. The full text of the license may be found at<BR>
|
||||||
|
@ -555,7 +555,7 @@ ArpDriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
ARP driver header file.
|
ARP driver header file.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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<BR>
|
which accompanies this distribution. The full text of the license may be found at<BR>
|
||||||
|
@ -167,7 +167,7 @@ ArpDriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -531,7 +531,7 @@ DhcpInitProtocol (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Header for the DHCP4 driver.
|
Header for the DHCP4 driver.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -112,7 +112,7 @@ Dhcp4DriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -800,7 +800,7 @@ ON_ERROR:
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -135,7 +135,7 @@ Ip4DriverBindingStop (
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Function ptototypes for the ServiceBinding Prococol
|
// Function prototypes for the ServiceBinding Protocol
|
||||||
//
|
//
|
||||||
/**
|
/**
|
||||||
Creates a child handle and installs a protocol.
|
Creates a child handle and installs a protocol.
|
||||||
|
@ -151,7 +151,7 @@ Ip4DriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Definition for IP4 pesudo interface structure.
|
Definition for IP4 pesudo interface structure.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -144,7 +144,7 @@ struct _IP4_INTERFACE {
|
||||||
|
|
||||||
//
|
//
|
||||||
// IP address and subnet mask of the interface. It also contains
|
// IP address and subnet mask of the interface. It also contains
|
||||||
// the subnet/net broadcast address for quick access. The fileds
|
// the subnet/net broadcast address for quick access. The fields
|
||||||
// are invalid if (Configured == FALSE)
|
// are invalid if (Configured == FALSE)
|
||||||
//
|
//
|
||||||
IP4_ADDR Ip;
|
IP4_ADDR Ip;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implementation of driver entry point and driver binding protocol.
|
Implementation of driver entry point and driver binding protocol.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
of the BSD License which accompanies this distribution. The full
|
of the BSD License which accompanies this distribution. The full
|
||||||
|
@ -428,7 +428,7 @@ MnpDriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to
|
||||||
create the child.
|
create the child.
|
||||||
@retval Others The child handle was not created.
|
@retval Others The child handle was not created.
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ MnpDriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to
|
||||||
create the child.
|
create the child.
|
||||||
@retval Others The child handle was not created.
|
@retval Others The child handle was not created.
|
||||||
|
|
||||||
|
|
|
@ -883,7 +883,7 @@ MnpReceivePacket (
|
||||||
|
|
||||||
if (MnpDeviceData->RxNbufCache == NULL) {
|
if (MnpDeviceData->RxNbufCache == NULL) {
|
||||||
//
|
//
|
||||||
// No availabe buffer in the buffer pool.
|
// No available buffer in the buffer pool.
|
||||||
//
|
//
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Tcp driver function.
|
Tcp driver function.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -667,7 +667,7 @@ Tcp4DestroySocketCallback (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child.
|
the child.
|
||||||
@retval other The child handle was not created.
|
@retval other The child handle was not created.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Tcp driver function header.
|
Tcp driver function header.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -301,7 +301,7 @@ Tcp4DestroySocketCallback (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child.
|
the child.
|
||||||
@retval other The child handle was not created.
|
@retval other The child handle was not created.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
TCP output process routines.
|
TCP output process routines.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -486,7 +486,7 @@ TcpGetSegmentSndQue (
|
||||||
|
|
||||||
//
|
//
|
||||||
// If SYN is set and out of the range, clear the flag.
|
// If SYN is set and out of the range, clear the flag.
|
||||||
// Becuase the sequence of the first byte is SEG.SEQ+1,
|
// Because the sequence of the first byte is SEG.SEQ+1,
|
||||||
// adjust Offset by -1. If SYN is in the range, copy
|
// adjust Offset by -1. If SYN is in the range, copy
|
||||||
// one byte less.
|
// one byte less.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -294,7 +294,7 @@ Udp4DriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
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
|
||||||
|
@ -113,7 +113,7 @@ Udp4DriverBindingStop (
|
||||||
|
|
||||||
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
@retval EFI_SUCCES The protocol was added to ChildHandle.
|
||||||
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
@retval EFI_INVALID_PARAMETER ChildHandle is NULL.
|
||||||
@retval EFI_OUT_OF_RESOURCES There are not enough resources availabe to create
|
@retval EFI_OUT_OF_RESOURCES There are not enough resources available to create
|
||||||
the child
|
the child
|
||||||
@retval other The child handle was not created
|
@retval other The child handle was not created
|
||||||
|
|
||||||
|
|
|
@ -200,10 +200,10 @@ Udp4DeliverDgram (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function demultiplexes the received udp datagram to the apropriate instances.
|
This function demultiplexes the received udp datagram to the appropriate instances.
|
||||||
|
|
||||||
@param[in] Udp4Service Pointer to the udp service context data.
|
@param[in] Udp4Service Pointer to the udp service context data.
|
||||||
@param[in] NetSession Pointer to the EFI_NET_SESSION_DATA abstrated from
|
@param[in] NetSession Pointer to the EFI_NET_SESSION_DATA abstracted from
|
||||||
the received datagram.
|
the received datagram.
|
||||||
@param[in] Packet Pointer to the buffer containing the received udp
|
@param[in] Packet Pointer to the buffer containing the received udp
|
||||||
datagram.
|
datagram.
|
||||||
|
@ -1586,10 +1586,10 @@ Udp4DeliverDgram (
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function demultiplexes the received udp datagram to the apropriate instances.
|
This function demultiplexes the received udp datagram to the appropriate instances.
|
||||||
|
|
||||||
@param[in] Udp4Service Pointer to the udp service context data.
|
@param[in] Udp4Service Pointer to the udp service context data.
|
||||||
@param[in] NetSession Pointer to the EFI_NET_SESSION_DATA abstrated from
|
@param[in] NetSession Pointer to the EFI_NET_SESSION_DATA abstracted from
|
||||||
the received datagram.
|
the received datagram.
|
||||||
@param[in] Packet Pointer to the buffer containing the received udp
|
@param[in] Packet Pointer to the buffer containing the received udp
|
||||||
datagram.
|
datagram.
|
||||||
|
@ -1707,7 +1707,7 @@ Udp4SendPortUnreach (
|
||||||
IpSender = IpIoFindSender (&IpIo, NetSession->IpVersion, &NetSession->Dest);
|
IpSender = IpIoFindSender (&IpIo, NetSession->IpVersion, &NetSession->Dest);
|
||||||
if (IpSender == NULL) {
|
if (IpSender == NULL) {
|
||||||
//
|
//
|
||||||
// No apropriate sender, since we cannot send out the ICMP message through
|
// No appropriate sender, since we cannot send out the ICMP message through
|
||||||
// the default zero station address IP instance, abort.
|
// the default zero station address IP instance, abort.
|
||||||
//
|
//
|
||||||
return;
|
return;
|
||||||
|
@ -1716,7 +1716,7 @@ Udp4SendPortUnreach (
|
||||||
IpHdr = NetSession->IpHdr.Ip4Hdr;
|
IpHdr = NetSession->IpHdr.Ip4Hdr;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Calculate the requried length of the icmp error message.
|
// Calculate the required length of the icmp error message.
|
||||||
//
|
//
|
||||||
Len = sizeof (IP4_ICMP_ERROR_HEAD) + (EFI_IP4_HEADER_LEN (IpHdr) -
|
Len = sizeof (IP4_ICMP_ERROR_HEAD) + (EFI_IP4_HEADER_LEN (IpHdr) -
|
||||||
sizeof (IP4_HEAD)) + ICMP_ERROR_PACKET_LENGTH;
|
sizeof (IP4_HEAD)) + ICMP_ERROR_PACKET_LENGTH;
|
||||||
|
|
Loading…
Reference in New Issue