1. Sync definition of EFI_DEBUG_IMAGE_INFO with UEFI spec
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Mar 2007 07:04:05 +0000 (07:04 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 8 Mar 2007 07:04:05 +0000 (07:04 +0000)
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

EdkModulePkg/Bus/Usb/UsbBot/Dxe/bot.c
EdkModulePkg/Core/Dxe/DebugImageInfo.h
EdkModulePkg/Core/Dxe/Misc/DebugImageInfo.c
EdkModulePkg/Library/EdkGenericBdsLib/BdsBoot.c
EdkModulePkg/Library/EdkGenericPlatformBdsLib/BdsEntry.c
EdkNt32Pkg/Dxe/PlatformBds/Generic/BdsEntry.c
EdkNt32Pkg/Library/EdkGenericBdsLib/BdsBoot.c
MdePkg/Include/Guid/DebugImageInfoTable.h

index e6a5be4..fef5de9 100644 (file)
@@ -608,17 +608,7 @@ BotCommandPhase (
   cbw.dCBWSignature           = CBWSIG;\r
   cbw.dCBWTag                 = 0x01;\r
   cbw.dCBWDataTransferLength  = DataTransferLength;\r
-  switch (Direction) {\r
-  case EfiUsbDataOut:\r
-  case EfiUsbNoData:\r
-    cbw.bmCBWFlags            = 0;\r
-    break;\r
-  case EfiUsbDataIn:\r
-    cbw.bmCBWFlags            = 0x80;\r
-    break;\r
-  default:\r
-    break;\r
-  }\r
+  cbw.bmCBWFlags              = (UINT8) ((Direction == EfiUsbDataIn) ? 0x80 : 0);\r
   cbw.bCBWCBLength            = CommandSize;\r
 \r
   CopyMem (cbw.CBWCB, Command, CommandSize);\r
index be1d1f1..006f629 100644 (file)
@@ -79,7 +79,7 @@ Returns:
 \r
 VOID\r
 CoreNewDebugImageInfoEntry (\r
-  UINTN                    ImageInfoType,\r
+  UINT32                    ImageInfoType,\r
   EFI_LOADED_IMAGE_PROTOCOL *LoadedImage,\r
   EFI_HANDLE                ImageHandle\r
   )\r
index e7f90de..3ba1eca 100644 (file)
@@ -132,7 +132,7 @@ Returns:
 \r
 VOID\r
 CoreNewDebugImageInfoEntry (\r
-  IN  UINT                      ImageInfoType,\r
+  IN  UINT32                      ImageInfoType,\r
   IN  EFI_LOADED_IMAGE_PROTOCOL   *LoadedImage,\r
   IN  EFI_HANDLE                  ImageHandle\r
   )\r
index 755c042..4513aa9 100644 (file)
@@ -124,6 +124,11 @@ Returns:
   EFI_BLOCK_IO_PROTOCOL     *BlkIo;\r
   VOID                      *Buffer;\r
 \r
+  //\r
+  // Record the performance data for End of BDS\r
+  //\r
+  PERF_END (0, BDS_TOK, NULL, 0);\r
+\r
   *ExitDataSize = 0;\r
   *ExitData     = NULL;\r
 \r
index 7c219b6..07789a3 100644 (file)
@@ -218,7 +218,6 @@ Returns:
     // All the driver options should have been processed since\r
     // now boot will be performed.\r
     //\r
-    PERF_END (0, BDS_TOK, NULL, 0);\r
     Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);\r
     if (EFI_ERROR (Status)) {\r
       //\r
index a26a79f..6979db0 100644 (file)
@@ -216,7 +216,6 @@ Returns:
     // All the driver options should have been processed since\r
     // now boot will be performed.\r
     //\r
-    PERF_END (0, BDS_TOK, NULL, 0);\r
     Status = BdsLibBootViaBootOption (BootOption, BootOption->DevicePath, &ExitDataSize, &ExitData);\r
     if (EFI_ERROR (Status)) {\r
       //\r
index 3963dbc..0c744db 100644 (file)
@@ -123,6 +123,11 @@ Returns:
   EFI_BLOCK_IO_PROTOCOL     *BlkIo;\r
   VOID                      *Buffer;\r
 \r
+  //\r
+  // Record the performance data for End of BDS\r
+  //\r
+  PERF_END (0, BDS_TOK, NULL, 0);\r
+\r
   *ExitDataSize = 0;\r
   *ExitData     = NULL;\r
 \r
index f050a2e..0ab4248 100644 (file)
@@ -45,7 +45,7 @@ typedef struct {
 } EFI_DEBUG_IMAGE_INFO_NORMAL;\r
 \r
 typedef union {\r
-  UINT                      *ImageInfoType;\r
+  UINT32                      *ImageInfoType;\r
   EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;\r
 } EFI_DEBUG_IMAGE_INFO;\r
 \r