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:
qhuang8 2008-04-09 05:39:18 +00:00
parent fd6a62f3bf
commit 897f0eee20
17 changed files with 5809 additions and 6254 deletions

View File

@ -1,6 +1,8 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,16 +11,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BdsBoot.c
Abstract:
BDS Lib functions which relate with create or process the boot
option.
**/ **/
#include "InternalBdsLib.h" #include "InternalBdsLib.h"
@ -96,6 +88,7 @@ BdsLibDoLegacyBoot (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibBootViaBootOption ( BdsLibBootViaBootOption (
IN BDS_COMMON_OPTION * Option, IN BDS_COMMON_OPTION * Option,
IN EFI_DEVICE_PATH_PROTOCOL * DevicePath, IN EFI_DEVICE_PATH_PROTOCOL * DevicePath,
@ -305,11 +298,12 @@ Done:
@param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard @param HardDriveDevicePath EFI Device Path to boot, if it starts with a hard
drive media device path. drive media device path.
A Pointer to the full device path. @return A Pointer to the full device path or NULL if a valid Hard Drive devic path
@retval NULL Cannot find a valid Hard Drive devic path cannot be found.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
BdsExpandPartitionPartialDevicePathToFull ( BdsExpandPartitionPartialDevicePathToFull (
IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath
) )
@ -521,6 +515,7 @@ BdsExpandPartitionPartialDevicePathToFull (
**/ **/
BOOLEAN BOOLEAN
EFIAPI
MatchPartitionDevicePathNode ( MatchPartitionDevicePathNode (
IN EFI_DEVICE_PATH_PROTOCOL *BlockIoDevicePath, IN EFI_DEVICE_PATH_PROTOCOL *BlockIoDevicePath,
IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath IN HARDDRIVE_DEVICE_PATH *HardDriveDevicePath
@ -808,6 +803,7 @@ BdsDeleteAllInvalidEfiBootOption (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibEnumerateAllBootOption ( BdsLibEnumerateAllBootOption (
IN OUT LIST_ENTRY *BdsBootOptionList IN OUT LIST_ENTRY *BdsBootOptionList
) )
@ -1113,6 +1109,7 @@ BdsLibEnumerateAllBootOption (
**/ **/
VOID VOID
EFIAPI
BdsLibBuildOptionFromHandle ( BdsLibBuildOptionFromHandle (
IN EFI_HANDLE Handle, IN EFI_HANDLE Handle,
IN LIST_ENTRY *BdsBootOptionList, IN LIST_ENTRY *BdsBootOptionList,
@ -1142,6 +1139,7 @@ BdsLibBuildOptionFromHandle (
**/ **/
VOID VOID
EFIAPI
BdsLibBuildOptionFromShell ( BdsLibBuildOptionFromShell (
IN EFI_HANDLE Handle, IN EFI_HANDLE Handle,
IN OUT LIST_ENTRY *BdsBootOptionList IN OUT LIST_ENTRY *BdsBootOptionList
@ -1175,12 +1173,9 @@ BdsLibBuildOptionFromShell (
/** /**
Boot from the EFI1.1 spec defined "BootNext" variable Boot from the EFI1.1 spec defined "BootNext" variable
None
@return None
**/ **/
VOID VOID
EFIAPI
BdsLibBootNext ( BdsLibBootNext (
VOID VOID
) )
@ -1243,6 +1238,7 @@ BdsLibBootNext (
**/ **/
EFI_HANDLE EFI_HANDLE
EFIAPI
BdsLibGetBootableHandle ( BdsLibGetBootableHandle (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
) )
@ -1467,35 +1463,27 @@ BdsLibNetworkBootWithMediaPresent (
@param DevicePath The bootable device Path to check @param DevicePath The bootable device Path to check
@return UINT32 Boot type : @retval BDS_EFI_MEDIA_HD_BOOT 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 // If the device path contains any media deviec path node, it is media boot type @retval BDS_EFI_MEDIA_CDROM_BOOT 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 For the floppy node, handle it as media node
@return // @retval BDS_EFI_ACPI_FLOPPY_BOOT If the device path contains any media deviec path node, it is media boot type
@return BDS_EFI_MEDIA_HD_BOOT For the floppy node, handle it as media node
@return BDS_EFI_MEDIA_CDROM_BOOT @retval BDS_EFI_MESSAGE_ATAPI_BOOT If the device path not contains any media deviec path node, and
@return BDS_EFI_ACPI_FLOPPY_BOOT its last device path node point to a message device path node, it is
@return //
@return // If the device path not contains any media deviec path node, and @retval BDS_EFI_MESSAGE_SCSI_BOOT 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 its last device path node point to a message device path node, it is
@return // a message boot type @retval BDS_EFI_MESSAGE_USB_DEVICE_BOOT 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 BDS_EFI_MESSAGE_ATAPI_BOOT @retval BDS_EFI_MESSAGE_MISC_BOOT If the device path not contains any media deviec path node, and
@return BDS_EFI_MESSAGE_SCSI_BOOT its last device path node point to a message device path node, it is
@return BDS_EFI_MESSAGE_USB_DEVICE_BOOT @retval BDS_LEGACY_BBS_BOOT Legacy boot type
@return BDS_EFI_MESSAGE_MISC_BOOT @retval BDS_EFI_UNSUPPORT An EFI Removable BlockIO device path not point to a media and message devie,
@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
**/ **/
UINT32 UINT32
EFIAPI
BdsGetBootTypeFromDevicePath ( BdsGetBootTypeFromDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
) )
@ -1567,6 +1555,7 @@ BdsGetBootTypeFromDevicePath (
**/ **/
BOOLEAN BOOLEAN
EFIAPI
BdsLibIsValidEFIBootOptDevicePath ( BdsLibIsValidEFIBootOptDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevPath, IN EFI_DEVICE_PATH_PROTOCOL *DevPath,
IN BOOLEAN CheckMedia IN BOOLEAN CheckMedia

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BdsConnect.c
Abstract:
BDS Lib functions which relate with connect the device
**/ **/
#include "InternalBdsLib.h" #include "InternalBdsLib.h"
@ -29,12 +21,9 @@ Abstract:
sure all the system controller avialbe and the platform default sure all the system controller avialbe and the platform default
console connected. console connected.
None
@return None
**/ **/
VOID VOID
EFIAPI
BdsLibConnectAll ( BdsLibConnectAll (
VOID VOID
) )
@ -98,6 +87,7 @@ BdsLibGenericConnectAll (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibConnectDevicePath ( BdsLibConnectDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevicePathToConnect IN EFI_DEVICE_PATH_PROTOCOL *DevicePathToConnect
) )
@ -203,14 +193,13 @@ BdsLibConnectDevicePath (
This function will connect all current system handles recursively. The This function will connect all current system handles recursively. The
connection will finish until every handle's child handle created if it have. 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 @retval EFI_SUCCESS All handles and it's child handle have been
connected connected
@retval EFI_STATUS Return the status of gBS->LocateHandleBuffer(). @retval EFI_STATUS Return the status of gBS->LocateHandleBuffer().
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibConnectAllEfi ( BdsLibConnectAllEfi (
VOID VOID
) )
@ -245,13 +234,12 @@ BdsLibConnectAllEfi (
This function will disconnect all current system handles. The disconnection This function will disconnect all current system handles. The disconnection
will finish until every handle have been disconnected. will finish until every handle have been disconnected.
None
@retval EFI_SUCCESS All handles have been disconnected @retval EFI_SUCCESS All handles have been disconnected
@retval EFI_STATUS Return the status of gBS->LocateHandleBuffer(). @retval EFI_STATUS Return the status of gBS->LocateHandleBuffer().
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibDisconnectAllEfi ( BdsLibDisconnectAllEfi (
VOID VOID
) )
@ -291,12 +279,9 @@ BdsLibDisconnectAllEfi (
the correspoinding controllers if have. And at the same time, make the correspoinding controllers if have. And at the same time, make
sure all the system controllers have driver to manage it if have. sure all the system controllers have driver to manage it if have.
None
@return None
**/ **/
VOID VOID
EFIAPI
BdsLibConnectAllDriversToAllControllers ( BdsLibConnectAllDriversToAllControllers (
VOID VOID
) )
@ -338,6 +323,7 @@ BdsLibConnectAllDriversToAllControllers (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibConnectUsbDevByShortFormDP( BdsLibConnectUsbDevByShortFormDP(
IN UINT8 HostControllerPI, IN UINT8 HostControllerPI,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BdsConsole.c
Abstract:
BDS Lib functions which contain all the code to connect console device
**/ **/
#include "InternalBdsLib.h" #include "InternalBdsLib.h"
@ -66,6 +58,7 @@ IsNvNeed (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibUpdateConsoleVariable ( BdsLibUpdateConsoleVariable (
IN CHAR16 *ConVarName, IN CHAR16 *ConVarName,
IN EFI_DEVICE_PATH_PROTOCOL *CustomizedConDevicePath, IN EFI_DEVICE_PATH_PROTOCOL *CustomizedConDevicePath,
@ -182,6 +175,7 @@ BdsLibUpdateConsoleVariable (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibConnectConsoleVariable ( BdsLibConnectConsoleVariable (
IN CHAR16 *ConVarName IN CHAR16 *ConVarName
) )
@ -272,12 +266,9 @@ BdsLibConnectConsoleVariable (
This function will search every simpletxt devive in current system, This function will search every simpletxt devive in current system,
and make every simpletxt device as pertantial console device. and make every simpletxt device as pertantial console device.
None
@return None
**/ **/
VOID VOID
EFIAPI
BdsLibConnectAllConsoles ( BdsLibConnectAllConsoles (
VOID VOID
) )
@ -345,8 +336,6 @@ BdsLibConnectAllConsoles (
This function will connect console device base on the console This function will connect console device base on the console
device variable ConIn, ConOut and ErrOut. device variable ConIn, ConOut and ErrOut.
None
@retval EFI_SUCCESS At least one of the ConIn and ConOut device have @retval EFI_SUCCESS At least one of the ConIn and ConOut device have
been connected success. been connected success.
@retval EFI_STATUS Return the status of @retval EFI_STATUS Return the status of
@ -354,6 +343,7 @@ BdsLibConnectAllConsoles (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibConnectAllDefaultConsoles ( BdsLibConnectAllDefaultConsoles (
VOID VOID
) )

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BdsMisc.c
Abstract:
Misc BDS library function
**/ **/
#include "InternalBdsLib.h" #include "InternalBdsLib.h"
@ -34,12 +26,11 @@ extern UINT16 gPlatformBootTimeOutDefault;
/** /**
Return the default value for system Timeout variable. Return the default value for system Timeout variable.
None
@return Timeout value. @return Timeout value.
**/ **/
UINT16 UINT16
EFIAPI
BdsLibGetTimeout ( BdsLibGetTimeout (
VOID VOID
) )
@ -85,10 +76,9 @@ BdsLibGetTimeout (
@param BdsDriverLists The header of the current driver option link list @param BdsDriverLists The header of the current driver option link list
@return None
**/ **/
VOID VOID
EFIAPI
BdsLibLoadDrivers ( BdsLibLoadDrivers (
IN LIST_ENTRY *BdsDriverLists IN LIST_ENTRY *BdsDriverLists
) )
@ -250,6 +240,7 @@ BdsLibGetFreeOptionNumber (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibRegisterNewOption ( BdsLibRegisterNewOption (
IN LIST_ENTRY *BdsOptionList, IN LIST_ENTRY *BdsOptionList,
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
@ -453,6 +444,7 @@ BdsLibRegisterNewOption (
**/ **/
BDS_COMMON_OPTION * BDS_COMMON_OPTION *
EFIAPI
BdsLibVariableToOption ( BdsLibVariableToOption (
IN OUT LIST_ENTRY *BdsCommonOptionList, IN OUT LIST_ENTRY *BdsCommonOptionList,
IN CHAR16 *VariableName IN CHAR16 *VariableName
@ -578,6 +570,7 @@ BdsLibVariableToOption (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibBuildOptionFromVar ( BdsLibBuildOptionFromVar (
IN LIST_ENTRY *BdsCommonOptionList, IN LIST_ENTRY *BdsCommonOptionList,
IN CHAR16 *VariableName IN CHAR16 *VariableName
@ -630,31 +623,15 @@ BdsLibBuildOptionFromVar (
@param BootMode Boot mode from PEI handoff HOB. @param BootMode Boot mode from PEI handoff HOB.
@retval EFI_SUCCESS Successfully get boot mode @retval EFI_SUCCESS Successfully get boot mode
@retval EFI_NOT_FOUND Can not find the current system boot mode
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibGetBootMode ( BdsLibGetBootMode (
OUT EFI_BOOT_MODE *BootMode OUT EFI_BOOT_MODE *BootMode
) )
{ {
VOID *HobList; *BootMode = GetBootModeHob ();
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;
}
return EFI_SUCCESS; return EFI_SUCCESS;
} }
@ -674,6 +651,7 @@ BdsLibGetBootMode (
**/ **/
VOID * VOID *
EFIAPI
BdsLibGetVariableAndSize ( BdsLibGetVariableAndSize (
IN CHAR16 *Name, IN CHAR16 *Name,
IN EFI_GUID *VendorGuid, IN EFI_GUID *VendorGuid,
@ -722,11 +700,12 @@ BdsLibGetVariableAndSize (
structure. structure.
@return This function will remove the device path instances in Multi which partly @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 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. remaining device path as a result, this function will return NULL.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
BdsLibDelPartMatchInstance ( BdsLibDelPartMatchInstance (
IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Multi,
IN EFI_DEVICE_PATH_PROTOCOL *Single IN EFI_DEVICE_PATH_PROTOCOL *Single
@ -785,6 +764,7 @@ BdsLibDelPartMatchInstance (
**/ **/
BOOLEAN BOOLEAN
EFIAPI
BdsLibMatchDevicePaths ( BdsLibMatchDevicePaths (
IN EFI_DEVICE_PATH_PROTOCOL *Multi, IN EFI_DEVICE_PATH_PROTOCOL *Multi,
IN EFI_DEVICE_PATH_PROTOCOL *Single IN EFI_DEVICE_PATH_PROTOCOL *Single
@ -834,6 +814,7 @@ BdsLibMatchDevicePaths (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibOutputStrings ( BdsLibOutputStrings (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut, IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *ConOut,
... ...
@ -876,12 +857,9 @@ BdsLibOutputStrings (
Enable the setup browser reset reminder feature. 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. This routine is used in platform tip. If the platform policy need the feature, use the routine to enable it.
VOID
@return VOID
**/ **/
VOID VOID
EFIAPI
EnableResetReminderFeature ( EnableResetReminderFeature (
VOID VOID
) )
@ -894,12 +872,9 @@ EnableResetReminderFeature (
Disable the setup browser reset reminder feature. 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. 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 VOID
EFIAPI
DisableResetReminderFeature ( DisableResetReminderFeature (
VOID VOID
) )
@ -912,12 +887,9 @@ DisableResetReminderFeature (
Record the info that a reset is required. Record the info that a reset is required.
A module boolean variable is used to record whether a reset is required. A module boolean variable is used to record whether a reset is required.
VOID
@return VOID
**/ **/
VOID VOID
EFIAPI
EnableResetRequired ( EnableResetRequired (
VOID VOID
) )
@ -930,12 +902,9 @@ EnableResetRequired (
Record the info that no reset is required. Record the info that no reset is required.
A module boolean variable is used to record whether a reset is required. A module boolean variable is used to record whether a reset is required.
VOID
@return VOID
**/ **/
VOID VOID
EFIAPI
DisableResetRequired ( DisableResetRequired (
VOID VOID
) )
@ -947,12 +916,9 @@ DisableResetRequired (
/** /**
Check whether platform policy enable the reset reminder feature. The default is enabled. Check whether platform policy enable the reset reminder feature. The default is enabled.
VOID
@return VOID
**/ **/
BOOLEAN BOOLEAN
EFIAPI
IsResetReminderFeatureEnable ( IsResetReminderFeatureEnable (
VOID VOID
) )
@ -964,12 +930,9 @@ IsResetReminderFeatureEnable (
/** /**
Check if user changed any option setting which needs a system reset to be effective. Check if user changed any option setting which needs a system reset to be effective.
VOID
@return VOID
**/ **/
BOOLEAN BOOLEAN
EFIAPI
IsResetRequired ( IsResetRequired (
VOID VOID
) )
@ -983,12 +946,9 @@ IsResetRequired (
If a reset is needed, Popup a menu to notice user, and finish the feature If a reset is needed, Popup a menu to notice user, and finish the feature
according to the user selection. according to the user selection.
VOID
@return VOID
**/ **/
VOID VOID
EFIAPI
SetupResetReminder ( SetupResetReminder (
VOID VOID
) )
@ -1046,6 +1006,7 @@ SetupResetReminder (
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
BdsLibGetImageHeader ( BdsLibGetImageHeader (
IN EFI_HANDLE Device, IN EFI_HANDLE Device,
IN CHAR16 *FileName, IN CHAR16 *FileName,
@ -1204,7 +1165,7 @@ Returns:
UINT32 Previous; UINT32 Previous;
UINT32 Current; UINT32 Current;
UINT32 Next; UINT32 Next;
VOID *HobList; EFI_HOB_GUID_TYPE *GuidHob;
UpdateRequired = FALSE; UpdateRequired = FALSE;
@ -1225,14 +1186,15 @@ Returns:
// PEI is responsible for getting them from variable and build a Hob to save them. // 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 // If the previous Memory Type Information is not available, then set defaults
// //
EfiGetSystemConfigurationTable (&gEfiHobListGuid, &HobList); GuidHob = GetFirstGuidHob (&gEfiMemoryTypeInformationGuid);
Status = R8_GetNextGuidHob (&HobList, &gEfiMemoryTypeInformationGuid, (VOID **) &PreviousMemoryTypeInformation, &VariableSize); if (GuidHob == NULL) {
if (EFI_ERROR (Status) || PreviousMemoryTypeInformation == NULL) {
// //
// If Platform has not built Memory Type Info into the Hob, just return. // If Platform has not built Memory Type Info into the Hob, just return.
// //
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 // 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 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 and save the updated info into the variable for next boot to use
None
@return None.
**/ **/
VOID VOID
EFIAPI 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;
}

View File

@ -1,6 +1,8 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,30 +11,10 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
DevicePath.c
Abstract:
BDS internal function define the default device path string, it can be
replaced by platform device path.
**/ **/
#include "InternalBdsLib.h" #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; EFI_GUID mEfiDevicePathMessagingUartFlowControlGuid = DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL;
@ -102,6 +84,7 @@ Returns:
**/ **/
CHAR16 * CHAR16 *
EFIAPI
CatPrint ( CatPrint (
IN OUT POOL_PRINT *Str, IN OUT POOL_PRINT *Str,
IN CHAR16 *fmt, IN CHAR16 *fmt,
@ -153,11 +136,12 @@ CatPrint (
@param DevPath A pointer to a device path data structure @param DevPath A pointer to a device path data structure
@return If the memory for the device path is successfully allocated, then a @return A ponter to new device 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. pointer to the new device path is returned. Otherwise, NULL is returned.
**/ **/
EFI_DEVICE_PATH_PROTOCOL * EFI_DEVICE_PATH_PROTOCOL *
EFIAPI
BdsLibUnpackDevicePath ( BdsLibUnpackDevicePath (
IN EFI_DEVICE_PATH_PROTOCOL *DevPath IN EFI_DEVICE_PATH_PROTOCOL *DevPath
) )
@ -279,6 +263,7 @@ DevPathController (
**/ **/
VOID VOID
EFIAPI
DevPathVendor ( DevPathVendor (
IN OUT POOL_PRINT *Str, IN OUT POOL_PRINT *Str,
IN VOID *DevPath 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 * CHAR16 *
EFIAPI
DevicePathToStr ( DevicePathToStr (
IN EFI_DEVICE_PATH_PROTOCOL *DevPath IN EFI_DEVICE_PATH_PROTOCOL *DevPath
) )

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,19 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BmMachine.h
Abstract:
Boot Manager Machine type
Revision History
**/ **/
#ifndef _BM_MACHINE_H #ifndef _BM_MACHINE_H

View File

@ -1,9 +1,8 @@
#/** @file #/** @file
#
# Component name for module GenericBdsLib # Component name for module GenericBdsLib
# #
# FIX ME! # Copyright (c) 2007 - 2008, Intel Corporation. <BR>
# Copyright (c) 2007, Intel Corporation. All rights reserved.
#
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at # which accompanies this distribution. The full text of the license may be found at
@ -12,7 +11,6 @@
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
#
#**/ #**/
[Defines] [Defines]
@ -37,18 +35,14 @@
Performance.c Performance.c
BdsConnect.c BdsConnect.c
BdsMisc.c BdsMisc.c
R8Lib.c
BdsConsole.c BdsConsole.c
BdsBoot.c BdsBoot.c
InternalBdsLib.h InternalBdsLib.h
R8Lib.h
[Sources.Ia32] [Sources.Ia32]
Ia32/ClearDr.asm
Ia32/BmMachine.h Ia32/BmMachine.h
[Sources.X64] [Sources.X64]
x64/ClearDr.asm
x64/BmMachine.h x64/BmMachine.h
[Sources.IPF] [Sources.IPF]

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,19 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BmMachine.h
Abstract:
Boot Manager Machine type
Revision History
**/ **/
#ifndef _BM_MACHINE_H #ifndef _BM_MACHINE_H

View File

@ -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

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,15 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
InternalBdsLib.h
Abstract:
BDS library definition, include the file and data structure
**/ **/
#ifndef _INTERNAL_BDS_LIB_H_ #ifndef _INTERNAL_BDS_LIB_H_
@ -72,8 +64,6 @@ Abstract:
#include "BmMachine.h" #include "BmMachine.h"
#include "R8Lib.h"
#define PERFORMANCE_SIGNATURE EFI_SIGNATURE_32 ('P', 'e', 'r', 'f') #define PERFORMANCE_SIGNATURE EFI_SIGNATURE_32 ('P', 'e', 'r', 'f')
#define PERF_TOKEN_SIZE 28 #define PERF_TOKEN_SIZE 28
#define PERF_TOKEN_LENGTH (PERF_TOKEN_SIZE - 1) #define PERF_TOKEN_LENGTH (PERF_TOKEN_SIZE - 1)

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,19 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BmMachine.h
Abstract:
Boot Manager Machine type
Revision History
**/ **/
#ifndef _BM_MACHINE_H #ifndef _BM_MACHINE_H

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,17 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
ShadowRom.c
Abstract:
Shadow all option rom
Revision History
**/ **/
//@MT:#include "Tiano.h" //@MT:#include "Tiano.h"

View File

@ -1,6 +1,9 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,17 +12,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
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" #include "InternalBdsLib.h"

View File

@ -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;
}

View File

@ -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
)
;

View File

@ -1,6 +1,7 @@
/** @file /** @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 All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -9,19 +10,6 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
BmMachine.h
Abstract:
Boot Manager Machine type
Revision History
**/ **/
#ifndef _BM_MACHINE_H #ifndef _BM_MACHINE_H

View File

@ -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