1. Sync definition of EFI_DEBUG_IMAGE_INFO with UEFI spec

2. Make performance data for End of BDS is not recorded in Boot Manager Boot


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2431 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2007-03-08 07:04:05 +00:00
parent 5b396948e7
commit df557cca2f
8 changed files with 14 additions and 16 deletions

View File

@ -608,17 +608,7 @@ BotCommandPhase (
cbw.dCBWSignature = CBWSIG;
cbw.dCBWTag = 0x01;
cbw.dCBWDataTransferLength = DataTransferLength;
switch (Direction) {
case EfiUsbDataOut:
case EfiUsbNoData:
cbw.bmCBWFlags = 0;
break;
case EfiUsbDataIn:
cbw.bmCBWFlags = 0x80;
break;
default:
break;
}
cbw.bmCBWFlags = (UINT8) ((Direction == EfiUsbDataIn) ? 0x80 : 0);
cbw.bCBWCBLength = CommandSize;
CopyMem (cbw.CBWCB, Command, CommandSize);

View File

@ -79,7 +79,7 @@ Returns:
VOID
CoreNewDebugImageInfoEntry (
UINTN ImageInfoType,
UINT32 ImageInfoType,
EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
EFI_HANDLE ImageHandle
)

View File

@ -132,7 +132,7 @@ Returns:
VOID
CoreNewDebugImageInfoEntry (
IN UINTN ImageInfoType,
IN UINT32 ImageInfoType,
IN EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,
IN EFI_HANDLE ImageHandle
)

View File

@ -124,6 +124,11 @@ Returns:
EFI_BLOCK_IO_PROTOCOL *BlkIo;
VOID *Buffer;
//
// Record the performance data for End of BDS
//
PERF_END (0, BDS_TOK, NULL, 0);
*ExitDataSize = 0;
*ExitData = NULL;

View File

@ -218,7 +218,6 @@ Returns:
// All the driver options should have been processed since
// now boot will be performed.
//
PERF_END (0, BDS_TOK, NULL, 0);
Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);
if (EFI_ERROR (Status)) {
//

View File

@ -216,7 +216,6 @@ Returns:
// All the driver options should have been processed since
// now boot will be performed.
//
PERF_END (0, BDS_TOK, NULL, 0);
Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);
if (EFI_ERROR (Status)) {
//

View File

@ -123,6 +123,11 @@ Returns:
EFI_BLOCK_IO_PROTOCOL *BlkIo;
VOID *Buffer;
//
// Record the performance data for End of BDS
//
PERF_END (0, BDS_TOK, NULL, 0);
*ExitDataSize = 0;
*ExitData = NULL;

View File

@ -45,7 +45,7 @@ typedef struct {
} EFI_DEBUG_IMAGE_INFO_NORMAL;
typedef union {
UINTN *ImageInfoType;
UINT32 *ImageInfoType;
EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;
} EFI_DEBUG_IMAGE_INFO;