]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Revert "DebugUsb3: Fix GCC build failures"
authorStar Zeng <star.zeng@intel.com>
Wed, 14 Mar 2018 08:09:10 +0000 (16:09 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 15 Mar 2018 06:14:11 +0000 (14:14 +0800)
This reverts commit ad6040ec9b5bbc462762331f9738b8e42c0b9c80.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Common.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c

index c577df7dea97e09947f6b562d85e0244a66315bc..87fb0265489b99d2a11400365052037260469fa2 100644 (file)
@@ -906,6 +906,7 @@ DebugPortWriteBuffer (
   USB3_DEBUG_PORT_HANDLE    *UsbDebugPortHandle;\r
   UINTN                     Sent;\r
   UINTN                     Total;\r
+  UINTN                     Index;\r
 \r
   if (NumberOfBytes == 0 || Buffer == NULL) {\r
     return 0;\r
@@ -933,6 +934,7 @@ DebugPortWriteBuffer (
   //\r
   DebugPortPollBuffer (UsbDebugPortHandle);\r
 \r
+  Index = 0;\r
   while ((Total < NumberOfBytes)) {\r
     if (NumberOfBytes - Total > USB3_DEBUG_PORT_WRITE_MAX_PACKET_SIZE) {\r
       Sent = USB3_DEBUG_PORT_WRITE_MAX_PACKET_SIZE;\r
index 1b6645bd1c6d422be1ce56cec58d92364cbe9fdd..dbff493624077f88655be0a9a529ad7d50d38d45 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Debug Port Library implementation based on usb3 debug port.\r
 \r
-  Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -145,9 +145,11 @@ XhcCheckNewEvent (
   )\r
 {\r
   EFI_STATUS          Status;\r
+  TRB_TEMPLATE        *EvtTrb;\r
 \r
   ASSERT (EvtRing != NULL);\r
 \r
+  EvtTrb     = (TRB_TEMPLATE *)(UINTN) EvtRing->EventRingDequeue;\r
   *NewEvtTrb = (TRB_TEMPLATE *)(UINTN) EvtRing->EventRingDequeue;\r
 \r
   if (EvtRing->EventRingDequeue == EvtRing->EventRingEnqueue) {\r