mirror of https://github.com/acidanthera/audk.git
Clean up BDS lib to remove assembly files, remove R8Lib.h & R8Lib.c by applying Mde Lib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5020 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fd6a62f3bf
commit
897f0eee20
|
@ -1,6 +1,8 @@
|
|||
/** @file
|
||||
BDS Lib functions which relate with create or process the boot
|
||||
option.
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,16 +11,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BdsBoot.c
|
||||
|
||||
Abstract:
|
||||
|
||||
BDS Lib functions which relate with create or process the boot
|
||||
option.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
@ -96,6 +88,7 @@ BdsLibDoLegacyBoot (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibBootViaBootOption (
|
||||
IN BDS_COMMON_OPTION * Option,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL * DevicePath,
|
||||
|
@ -305,11 +298,12 @@ Done:
|
|||
|
||||
@param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard
|
||||
drive media device path.
|
||||
A Pointer to the full device path.
|
||||
@retval NULL Cannot find a valid Hard Drive devic path
|
||||
@return A Pointer to the full device path or NULL if a valid Hard Drive devic path
|
||||
cannot be found.
|
||||
|
||||
**/
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
EFIAPI
|
||||
BdsExpandPartitionPartialDevicePathToFull (
|
||||
IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath
|
||||
)
|
||||
|
@ -521,6 +515,7 @@ BdsExpandPartitionPartialDevicePathToFull (
|
|||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
MatchPartitionDevicePathNode (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *BlockIoDevicePath,
|
||||
IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath
|
||||
|
@ -808,6 +803,7 @@ BdsDeleteAllInvalidEfiBootOption (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibEnumerateAllBootOption (
|
||||
IN OUT LIST_ENTRY *BdsBootOptionList
|
||||
)
|
||||
|
@ -1113,6 +1109,7 @@ BdsLibEnumerateAllBootOption (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibBuildOptionFromHandle (
|
||||
IN EFI_HANDLE Handle,
|
||||
IN LIST_ENTRY *BdsBootOptionList,
|
||||
|
@ -1142,6 +1139,7 @@ BdsLibBuildOptionFromHandle (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibBuildOptionFromShell (
|
||||
IN EFI_HANDLE Handle,
|
||||
IN OUT LIST_ENTRY *BdsBootOptionList
|
||||
|
@ -1175,12 +1173,9 @@ BdsLibBuildOptionFromShell (
|
|||
/**
|
||||
Boot from the EFI1.1 spec defined "BootNext" variable
|
||||
|
||||
None
|
||||
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibBootNext (
|
||||
VOID
|
||||
)
|
||||
|
@ -1243,6 +1238,7 @@ BdsLibBootNext (
|
|||
|
||||
**/
|
||||
EFI_HANDLE
|
||||
EFIAPI
|
||||
BdsLibGetBootableHandle (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||
)
|
||||
|
@ -1467,35 +1463,27 @@ BdsLibNetworkBootWithMediaPresent (
|
|||
|
||||
@param DevicePath The bootable device Path to check
|
||||
|
||||
@return UINT32 Boot type :
|
||||
@return //
|
||||
@return // If the device path contains any media deviec path node, it is media boot type
|
||||
@return // For the floppy node, handle it as media node
|
||||
@return //
|
||||
@return BDS_EFI_MEDIA_HD_BOOT
|
||||
@return BDS_EFI_MEDIA_CDROM_BOOT
|
||||
@return BDS_EFI_ACPI_FLOPPY_BOOT
|
||||
@return //
|
||||
@return // If the device path not contains any media deviec path node, and
|
||||
@return // its last device path node point to a message device path node, it is
|
||||
@return // a message boot type
|
||||
@return //
|
||||
@return BDS_EFI_MESSAGE_ATAPI_BOOT
|
||||
@return BDS_EFI_MESSAGE_SCSI_BOOT
|
||||
@return BDS_EFI_MESSAGE_USB_DEVICE_BOOT
|
||||
@return BDS_EFI_MESSAGE_MISC_BOOT
|
||||
@return //
|
||||
@return // Legacy boot type
|
||||
@return //
|
||||
@return BDS_LEGACY_BBS_BOOT
|
||||
@return //
|
||||
@return // If a EFI Removable BlockIO device path not point to a media and message devie,
|
||||
@return // it is unsupported
|
||||
@return //
|
||||
@return BDS_EFI_UNSUPPORT
|
||||
@retval BDS_EFI_MEDIA_HD_BOOT If the device path contains any media deviec path node, it is media boot type
|
||||
For the floppy node, handle it as media node
|
||||
@retval BDS_EFI_MEDIA_CDROM_BOOT If the device path contains any media deviec path node, it is media boot type
|
||||
For the floppy node, handle it as media node
|
||||
@retval BDS_EFI_ACPI_FLOPPY_BOOT If the device path contains any media deviec path node, it is media boot type
|
||||
For the floppy node, handle it as media node
|
||||
@retval BDS_EFI_MESSAGE_ATAPI_BOOT If the device path not contains any media deviec path node, and
|
||||
its last device path node point to a message device path node, it is
|
||||
|
||||
@retval BDS_EFI_MESSAGE_SCSI_BOOT If the device path not contains any media deviec path node, and
|
||||
its last device path node point to a message device path node, it is
|
||||
@retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT If the device path not contains any media deviec path node, and
|
||||
its last device path node point to a message device path node, it is
|
||||
@retval BDS_EFI_MESSAGE_MISC_BOOT If the device path not contains any media deviec path node, and
|
||||
its last device path node point to a message device path node, it is
|
||||
@retval BDS_LEGACY_BBS_BOOT Legacy boot type
|
||||
@retval BDS_EFI_UNSUPPORT An EFI Removable BlockIO device path not point to a media and message devie,
|
||||
|
||||
**/
|
||||
UINT32
|
||||
EFIAPI
|
||||
BdsGetBootTypeFromDevicePath (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||
)
|
||||
|
@ -1567,6 +1555,7 @@ BdsGetBootTypeFromDevicePath (
|
|||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
BdsLibIsValidEFIBootOptDevicePath (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevPath,
|
||||
IN BOOLEAN CheckMedia
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
BDS Lib functions which relate with connect the device
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,15 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BdsConnect.c
|
||||
|
||||
Abstract:
|
||||
|
||||
BDS Lib functions which relate with connect the device
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
@ -29,12 +21,9 @@ Abstract:
|
|||
sure all the system controller avialbe and the platform default
|
||||
console connected.
|
||||
|
||||
None
|
||||
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibConnectAll (
|
||||
VOID
|
||||
)
|
||||
|
@ -98,6 +87,7 @@ BdsLibGenericConnectAll (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibConnectDevicePath (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePathToConnect
|
||||
)
|
||||
|
@ -203,14 +193,13 @@ BdsLibConnectDevicePath (
|
|||
This function will connect all current system handles recursively. The
|
||||
connection will finish until every handle's child handle created if it have.
|
||||
|
||||
None
|
||||
|
||||
@retval EFI_SUCCESS All handles and it's child handle have been
|
||||
connected
|
||||
@retval EFI_STATUS Return the status of gBS->LocateHandleBuffer().
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibConnectAllEfi (
|
||||
VOID
|
||||
)
|
||||
|
@ -245,13 +234,12 @@ BdsLibConnectAllEfi (
|
|||
This function will disconnect all current system handles. The disconnection
|
||||
will finish until every handle have been disconnected.
|
||||
|
||||
None
|
||||
|
||||
@retval EFI_SUCCESS All handles have been disconnected
|
||||
@retval EFI_STATUS Return the status of gBS->LocateHandleBuffer().
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibDisconnectAllEfi (
|
||||
VOID
|
||||
)
|
||||
|
@ -291,12 +279,9 @@ BdsLibDisconnectAllEfi (
|
|||
the correspoinding controllers if have. And at the same time, make
|
||||
sure all the system controllers have driver to manage it if have.
|
||||
|
||||
None
|
||||
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibConnectAllDriversToAllControllers (
|
||||
VOID
|
||||
)
|
||||
|
@ -338,6 +323,7 @@ BdsLibConnectAllDriversToAllControllers (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibConnectUsbDevByShortFormDP(
|
||||
IN UINT8 HostControllerPI,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
BDS Lib functions which contain all the code to connect console device
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,15 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BdsConsole.c
|
||||
|
||||
Abstract:
|
||||
|
||||
BDS Lib functions which contain all the code to connect console device
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
@ -66,6 +58,7 @@ IsNvNeed (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibUpdateConsoleVariable (
|
||||
IN CHAR16 *ConVarName,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *CustomizedConDevicePath,
|
||||
|
@ -182,6 +175,7 @@ BdsLibUpdateConsoleVariable (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibConnectConsoleVariable (
|
||||
IN CHAR16 *ConVarName
|
||||
)
|
||||
|
@ -272,12 +266,9 @@ BdsLibConnectConsoleVariable (
|
|||
This function will search every simpletxt devive in current system,
|
||||
and make every simpletxt device as pertantial console device.
|
||||
|
||||
None
|
||||
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibConnectAllConsoles (
|
||||
VOID
|
||||
)
|
||||
|
@ -345,8 +336,6 @@ BdsLibConnectAllConsoles (
|
|||
This function will connect console device base on the console
|
||||
device variable ConIn, ConOut and ErrOut.
|
||||
|
||||
None
|
||||
|
||||
@retval EFI_SUCCESS At least one of the ConIn and ConOut device have
|
||||
been connected success.
|
||||
@retval EFI_STATUS Return the status of
|
||||
|
@ -354,6 +343,7 @@ BdsLibConnectAllConsoles (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibConnectAllDefaultConsoles (
|
||||
VOID
|
||||
)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Misc BDS library function
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,15 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BdsMisc.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Misc BDS library function
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
@ -34,12 +26,11 @@ extern UINT16 gPlatformBootTimeOutDefault;
|
|||
/**
|
||||
Return the default value for system Timeout variable.
|
||||
|
||||
None
|
||||
|
||||
@return Timeout value.
|
||||
|
||||
**/
|
||||
UINT16
|
||||
EFIAPI
|
||||
BdsLibGetTimeout (
|
||||
VOID
|
||||
)
|
||||
|
@ -85,10 +76,9 @@ BdsLibGetTimeout (
|
|||
|
||||
@param BdsDriverLists The header of the current driver option link list
|
||||
|
||||
@return None
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
BdsLibLoadDrivers (
|
||||
IN LIST_ENTRY *BdsDriverLists
|
||||
)
|
||||
|
@ -250,6 +240,7 @@ BdsLibGetFreeOptionNumber (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibRegisterNewOption (
|
||||
IN LIST_ENTRY *BdsOptionList,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
|
||||
|
@ -453,6 +444,7 @@ BdsLibRegisterNewOption (
|
|||
|
||||
**/
|
||||
BDS_COMMON_OPTION *
|
||||
EFIAPI
|
||||
BdsLibVariableToOption (
|
||||
IN OUT LIST_ENTRY *BdsCommonOptionList,
|
||||
IN CHAR16 *VariableName
|
||||
|
@ -578,6 +570,7 @@ BdsLibVariableToOption (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibBuildOptionFromVar (
|
||||
IN LIST_ENTRY *BdsCommonOptionList,
|
||||
IN CHAR16 *VariableName
|
||||
|
@ -630,31 +623,15 @@ BdsLibBuildOptionFromVar (
|
|||
@param BootMode Boot mode from PEI handoff HOB.
|
||||
|
||||
@retval EFI_SUCCESS Successfully get boot mode
|
||||
@retval EFI_NOT_FOUND Can not find the current system boot mode
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibGetBootMode (
|
||||
OUT EFI_BOOT_MODE *BootMode
|
||||
)
|
||||
{
|
||||
VOID *HobList;
|
||||
EFI_STATUS Status;
|
||||
|
||||
//
|
||||
// Get Hob list
|
||||
//
|
||||
Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &HobList);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Hob list not found\n"));
|
||||
*BootMode = 0;
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
Status = R8_GetHobBootMode (HobList, BootMode);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
*BootMode = GetBootModeHob ();
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
@ -674,6 +651,7 @@ BdsLibGetBootMode (
|
|||
|
||||
**/
|
||||
VOID *
|
||||
EFIAPI
|
||||
BdsLibGetVariableAndSize (
|
||||
IN CHAR16 *Name,
|
||||
IN EFI_GUID *VendorGuid,
|
||||
|
@ -722,11 +700,12 @@ BdsLibGetVariableAndSize (
|
|||
structure.
|
||||
|
||||
@return This function will remove the device path instances in Multi which partly
|
||||
@return match with the Single, and return the result device path. If there is no
|
||||
@return remaining device path as a result, this function will return NULL.
|
||||
match with the Single, and return the result device path. If there is no
|
||||
remaining device path as a result, this function will return NULL.
|
||||
|
||||
**/
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
EFIAPI
|
||||
BdsLibDelPartMatchInstance (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *Multi,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *Single
|
||||
|
@ -785,6 +764,7 @@ BdsLibDelPartMatchInstance (
|
|||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
BdsLibMatchDevicePaths (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *Multi,
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *Single
|
||||
|
@ -834,6 +814,7 @@ BdsLibMatchDevicePaths (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibOutputStrings (
|
||||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut,
|
||||
...
|
||||
|
@ -876,12 +857,9 @@ BdsLibOutputStrings (
|
|||
Enable the setup browser reset reminder feature.
|
||||
This routine is used in platform tip. If the platform policy need the feature, use the routine to enable it.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
EnableResetReminderFeature (
|
||||
VOID
|
||||
)
|
||||
|
@ -894,12 +872,9 @@ EnableResetReminderFeature (
|
|||
Disable the setup browser reset reminder feature.
|
||||
This routine is used in platform tip. If the platform policy do not want the feature, use the routine to disable it.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
DisableResetReminderFeature (
|
||||
VOID
|
||||
)
|
||||
|
@ -912,12 +887,9 @@ DisableResetReminderFeature (
|
|||
Record the info that a reset is required.
|
||||
A module boolean variable is used to record whether a reset is required.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
EnableResetRequired (
|
||||
VOID
|
||||
)
|
||||
|
@ -930,12 +902,9 @@ EnableResetRequired (
|
|||
Record the info that no reset is required.
|
||||
A module boolean variable is used to record whether a reset is required.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
DisableResetRequired (
|
||||
VOID
|
||||
)
|
||||
|
@ -947,12 +916,9 @@ DisableResetRequired (
|
|||
/**
|
||||
Check whether platform policy enable the reset reminder feature. The default is enabled.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
IsResetReminderFeatureEnable (
|
||||
VOID
|
||||
)
|
||||
|
@ -964,12 +930,9 @@ IsResetReminderFeatureEnable (
|
|||
/**
|
||||
Check if user changed any option setting which needs a system reset to be effective.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
IsResetRequired (
|
||||
VOID
|
||||
)
|
||||
|
@ -983,12 +946,9 @@ IsResetRequired (
|
|||
If a reset is needed, Popup a menu to notice user, and finish the feature
|
||||
according to the user selection.
|
||||
|
||||
VOID
|
||||
|
||||
@return VOID
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
SetupResetReminder (
|
||||
VOID
|
||||
)
|
||||
|
@ -1046,6 +1006,7 @@ SetupResetReminder (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
BdsLibGetImageHeader (
|
||||
IN EFI_HANDLE Device,
|
||||
IN CHAR16 *FileName,
|
||||
|
@ -1204,7 +1165,7 @@ Returns:
|
|||
UINT32 Previous;
|
||||
UINT32 Current;
|
||||
UINT32 Next;
|
||||
VOID *HobList;
|
||||
EFI_HOB_GUID_TYPE *GuidHob;
|
||||
|
||||
UpdateRequired = FALSE;
|
||||
|
||||
|
@ -1225,14 +1186,15 @@ Returns:
|
|||
// PEI is responsible for getting them from variable and build a Hob to save them.
|
||||
// If the previous Memory Type Information is not available, then set defaults
|
||||
//
|
||||
EfiGetSystemConfigurationTable (&gEfiHobListGuid, &HobList);
|
||||
Status = R8_GetNextGuidHob (&HobList, &gEfiMemoryTypeInformationGuid, (VOID **) &PreviousMemoryTypeInformation, &VariableSize);
|
||||
if (EFI_ERROR (Status) || PreviousMemoryTypeInformation == NULL) {
|
||||
GuidHob = GetFirstGuidHob (&gEfiMemoryTypeInformationGuid);
|
||||
if (GuidHob == NULL) {
|
||||
//
|
||||
// If Platform has not built Memory Type Info into the Hob, just return.
|
||||
//
|
||||
return;
|
||||
}
|
||||
PreviousMemoryTypeInformation = GET_GUID_HOB_DATA (GuidHob);
|
||||
VariableSize = GET_GUID_HOB_DATA_SIZE (GuidHob);
|
||||
|
||||
//
|
||||
// Use a heuristic to adjust the Memory Type Information for the next boot
|
||||
|
@ -1293,10 +1255,6 @@ Returns:
|
|||
This routine register a function to adjust the different type memory page number just before booting
|
||||
and save the updated info into the variable for next boot to use
|
||||
|
||||
None
|
||||
|
||||
@return None.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
|
@ -1320,23 +1278,3 @@ BdsLibSaveMemoryTypeInformation (
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
return the current TPL, copied from the EDKII glue lib.
|
||||
|
||||
VOID
|
||||
|
||||
@return Current TPL
|
||||
|
||||
**/
|
||||
EFI_TPL
|
||||
BdsLibGetCurrentTpl (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_TPL Tpl;
|
||||
|
||||
Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||
gBS->RestoreTPL (Tpl);
|
||||
|
||||
return Tpl;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/** @file
|
||||
BDS internal function define the default device path string, it can be
|
||||
replaced by platform device path.
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,30 +11,10 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
DevicePath.c
|
||||
|
||||
Abstract:
|
||||
|
||||
BDS internal function define the default device path string, it can be
|
||||
replaced by platform device path.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
||||
//
|
||||
// Platform Code should implement the Vendor specific Device Path display routine.
|
||||
//
|
||||
extern
|
||||
VOID
|
||||
DevPathVendor (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
IN VOID *DevPath
|
||||
)
|
||||
;
|
||||
|
||||
EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid = DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL;
|
||||
|
||||
|
@ -102,6 +84,7 @@ Returns:
|
|||
|
||||
**/
|
||||
CHAR16 *
|
||||
EFIAPI
|
||||
CatPrint (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
IN CHAR16 *fmt,
|
||||
|
@ -153,11 +136,12 @@ CatPrint (
|
|||
|
||||
@param DevPath A pointer to a device path data structure
|
||||
|
||||
@return If the memory for the device path is successfully allocated, then a
|
||||
@return pointer to the new device path is returned. Otherwise, NULL is returned.
|
||||
@return A ponter to new device If the memory for the device path is successfully allocated, then a
|
||||
pointer to the new device path is returned. Otherwise, NULL is returned.
|
||||
|
||||
**/
|
||||
EFI_DEVICE_PATH_PROTOCOL *
|
||||
EFIAPI
|
||||
BdsLibUnpackDevicePath (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
||||
)
|
||||
|
@ -279,6 +263,7 @@ DevPathController (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
DevPathVendor (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
IN VOID *DevPath
|
||||
|
@ -1169,9 +1154,15 @@ DEVICE_PATH_STRING_TABLE DevPathTable[] = {
|
|||
|
||||
|
||||
/**
|
||||
This function converts an input device structure to a Unicode string.
|
||||
|
||||
@param DevPath A pointer to the device path structure.
|
||||
|
||||
@return A new allocated Unicode string that represents the device path.
|
||||
|
||||
**/
|
||||
CHAR16 *
|
||||
EFIAPI
|
||||
DevicePathToStr (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *DevPath
|
||||
)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Boot Manager Machine type
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
Copyright (c) 2007 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,19 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BmMachine.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Boot Manager Machine type
|
||||
|
||||
|
||||
|
||||
Revision History
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _BM_MACHINE_H
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#/** @file
|
||||
#
|
||||
# Component name for module GenericBdsLib
|
||||
#
|
||||
# FIX ME!
|
||||
# Copyright (c) 2007, Intel Corporation. All rights reserved.
|
||||
#
|
||||
# Copyright (c) 2007 - 2008, Intel Corporation. <BR>
|
||||
# All rights reserved. This program and the accompanying materials
|
||||
# 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
|
||||
|
@ -12,7 +11,6 @@
|
|||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
#**/
|
||||
|
||||
[Defines]
|
||||
|
@ -37,18 +35,14 @@
|
|||
Performance.c
|
||||
BdsConnect.c
|
||||
BdsMisc.c
|
||||
R8Lib.c
|
||||
BdsConsole.c
|
||||
BdsBoot.c
|
||||
InternalBdsLib.h
|
||||
R8Lib.h
|
||||
|
||||
[Sources.Ia32]
|
||||
Ia32/ClearDr.asm
|
||||
Ia32/BmMachine.h
|
||||
|
||||
[Sources.X64]
|
||||
x64/ClearDr.asm
|
||||
x64/BmMachine.h
|
||||
|
||||
[Sources.IPF]
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Boot Manager Machine type
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,19 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BmMachine.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Boot Manager Machine type
|
||||
|
||||
|
||||
|
||||
Revision History
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _BM_MACHINE_H
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
title ClearDr.asm
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2004, Intel Corporation
|
||||
; All rights reserved. This program and the accompanying materials
|
||||
; 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
|
||||
; 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.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ClearDr.asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; Clear dr0 dr1 register
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.MODEL FLAT,C
|
||||
.CODE
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
; ClearDebugRegisters (
|
||||
; VOID
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
ClearDebugRegisters PROC PUBLIC
|
||||
push eax
|
||||
xor eax, eax
|
||||
mov dr0, eax
|
||||
mov dr1, eax
|
||||
pop eax
|
||||
ret
|
||||
ClearDebugRegisters ENDP
|
||||
|
||||
END
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
BDS library definition, include the file and data structure
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,15 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
InternalBdsLib.h
|
||||
|
||||
Abstract:
|
||||
|
||||
BDS library definition, include the file and data structure
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _INTERNAL_BDS_LIB_H_
|
||||
|
@ -72,8 +64,6 @@ Abstract:
|
|||
|
||||
#include "BmMachine.h"
|
||||
|
||||
#include "R8Lib.h"
|
||||
|
||||
#define PERFORMANCE_SIGNATURE EFI_SIGNATURE_32 ('P', 'e', 'r', 'f')
|
||||
#define PERF_TOKEN_SIZE 28
|
||||
#define PERF_TOKEN_LENGTH (PERF_TOKEN_SIZE - 1)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Boot Manager Machine type
|
||||
|
||||
Copyright (c) 2004 - 2006, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,19 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BmMachine.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Boot Manager Machine type
|
||||
|
||||
|
||||
|
||||
Revision History
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _BM_MACHINE_H
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Shadow all option rom
|
||||
|
||||
Copyright (c) 2004, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,17 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
ShadowRom.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Shadow all option rom
|
||||
|
||||
Revision History
|
||||
|
||||
|
||||
**/
|
||||
|
||||
//@MT:#include "Tiano.h"
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
/** @file
|
||||
This file include the file which can help to get the system
|
||||
performance, all the function will only include if the performance
|
||||
switch is set.
|
||||
|
||||
Copyright (c) 2004 - 2007, Intel Corporation
|
||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,17 +12,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
Performance.c
|
||||
|
||||
Abstract:
|
||||
|
||||
This file include the file which can help to get the system
|
||||
performance, all the function will only include if the performance
|
||||
switch is set.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
|
|
@ -1,114 +0,0 @@
|
|||
/**@file
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
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.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#include "InternalBdsLib.h"
|
||||
|
||||
/**
|
||||
Get current boot mode.
|
||||
|
||||
@param HobStart Start pointer of hob list
|
||||
@param BootMode Current boot mode recorded in PHIT hob
|
||||
|
||||
@retval EFI_NOT_FOUND Invalid hob header
|
||||
@retval EFI_SUCCESS Boot mode found
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
R8_GetHobBootMode (
|
||||
IN VOID *HobStart,
|
||||
OUT EFI_BOOT_MODE *BootMode
|
||||
)
|
||||
{
|
||||
//
|
||||
// Porting Guide:
|
||||
// This library interface is simply obsolete.
|
||||
// Include the source code to user code.
|
||||
// In fact, since EFI_HANDOFF_HOB must be the first Hob,
|
||||
// the following code can retrieve boot mode.
|
||||
//
|
||||
// EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;
|
||||
//
|
||||
// HandOffHob = GetHobList ();
|
||||
// ASSERT (HandOffHob->Header.HobType == EFI_HOB_TYPE_HANDOFF);
|
||||
//
|
||||
// BootMode = HandOffHob->BootMode;
|
||||
//
|
||||
EFI_PEI_HOB_POINTERS Hob;
|
||||
|
||||
Hob.Raw = HobStart;
|
||||
if (Hob.Header->HobType != EFI_HOB_TYPE_HANDOFF) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
*BootMode = Hob.HandoffInformationTable->BootMode;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Get the next guid hob.
|
||||
|
||||
@param HobStart A pointer to the start hob.
|
||||
@param Guid A pointer to a guid.
|
||||
@param Buffer A pointer to the buffer.
|
||||
@param BufferSize Buffer size.
|
||||
|
||||
@retval EFI_NOT_FOUND Next Guid hob not found
|
||||
@retval EFI_SUCCESS Next Guid hob found and data for this Guid got
|
||||
@retval EFI_INVALID_PARAMETER invalid parameter
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
R8_GetNextGuidHob (
|
||||
IN OUT VOID **HobStart,
|
||||
IN EFI_GUID * Guid,
|
||||
OUT VOID **Buffer,
|
||||
OUT UINTN *BufferSize OPTIONAL
|
||||
)
|
||||
{
|
||||
//
|
||||
// Porting Guide:
|
||||
// This library interface is changed substantially with R9 counerpart GetNextGuidHob ().
|
||||
// 1. R9 GetNextGuidHob has two parameters and returns the matched GUID HOB from the StartHob.
|
||||
// 2. R9 GetNextGuidHob does not strip the HOB header, so caller is required to apply
|
||||
// GET_GUID_HOB_DATA () and GET_GUID_HOB_DATA_SIZE () to extract the data section and its
|
||||
// size info respectively.
|
||||
// 3. this function does not skip the starting HOB pointer unconditionally:
|
||||
// it returns HobStart back if HobStart itself meets the requirement;
|
||||
// caller is required to use GET_NEXT_HOB() if it wishes to skip current HobStart.
|
||||
//
|
||||
EFI_PEI_HOB_POINTERS GuidHob;
|
||||
|
||||
if (Buffer == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
GuidHob.Raw = GetNextGuidHob (Guid, *HobStart);
|
||||
if (GuidHob.Raw == NULL) {
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
*Buffer = GET_GUID_HOB_DATA (GuidHob.Guid);
|
||||
if (BufferSize != NULL) {
|
||||
*BufferSize = GET_GUID_HOB_DATA_SIZE (GuidHob.Guid);
|
||||
}
|
||||
|
||||
*HobStart = GET_NEXT_HOB (GuidHob);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
/**@file
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
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.
|
||||
|
||||
|
||||
**/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Get current boot mode.
|
||||
|
||||
@param HobStart Start pointer of hob list
|
||||
@param BootMode Current boot mode recorded in PHIT hob
|
||||
|
||||
@retval EFI_NOT_FOUND Invalid hob header
|
||||
@retval EFI_SUCCESS Boot mode found
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
R8_GetHobBootMode (
|
||||
IN VOID *HobStart,
|
||||
OUT EFI_BOOT_MODE *BootMode
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Get the next guid hob.
|
||||
|
||||
@param HobStart A pointer to the start hob.
|
||||
@param Guid A pointer to a guid.
|
||||
@param Buffer A pointer to the buffer.
|
||||
@param BufferSize Buffer size.
|
||||
|
||||
@retval EFI_NOT_FOUND Next Guid hob not found
|
||||
@retval EFI_SUCCESS Next Guid hob found and data for this Guid got
|
||||
@retval EFI_INVALID_PARAMETER invalid parameter
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
R8_GetNextGuidHob (
|
||||
IN OUT VOID **HobStart,
|
||||
IN EFI_GUID * Guid,
|
||||
OUT VOID **Buffer,
|
||||
OUT UINTN *BufferSize OPTIONAL
|
||||
)
|
||||
;
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
/** @file
|
||||
Boot Manager Machine type
|
||||
|
||||
Copyright (c) 2005 - 2006, Intel Corporation
|
||||
Copyright (c) 2005 - 2008, Intel Corporation. <BR>
|
||||
All rights reserved. This program and the accompanying materials
|
||||
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
|
||||
|
@ -9,19 +10,6 @@ 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.
|
||||
|
||||
Module Name:
|
||||
|
||||
BmMachine.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Boot Manager Machine type
|
||||
|
||||
|
||||
|
||||
Revision History
|
||||
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _BM_MACHINE_H
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
title ClearDr.asm
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2005, Intel Corporation
|
||||
; All rights reserved. This program and the accompanying materials
|
||||
; 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
|
||||
; 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.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ClearDr.asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; Clear dr0 dr1 register
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
text SEGMENT
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID
|
||||
; ClearDebugRegisters (
|
||||
; VOID
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
ClearDebugRegisters PROC PUBLIC
|
||||
push rax
|
||||
xor rax, rax
|
||||
mov dr0, rax
|
||||
mov dr1, rax
|
||||
pop rax
|
||||
ret
|
||||
ClearDebugRegisters ENDP
|
||||
|
||||
END
|
||||
|
Loading…
Reference in New Issue