summaryrefslogtreecommitdiff
path: root/SourceLevelDebugPkg/Include
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2014-11-10 08:47:49 +0000
committerniruiyu <niruiyu@Edk2>2014-11-10 08:47:49 +0000
commitace354f10ba7ca424a96512b634ebee8225014f1 (patch)
treefc4611a0901260070ff4823e7e2ed7e3b8b5fd43 /SourceLevelDebugPkg/Include
parent1ff1dd0ff97b05bf88e50120ba49b435601d5ee8 (diff)
downloadedk2-platforms-ace354f10ba7ca424a96512b634ebee8225014f1.tar.xz
Fix a bug in DebugAgent that hang happens when the ACK for GO is lost.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16322 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SourceLevelDebugPkg/Include')
-rw-r--r--SourceLevelDebugPkg/Include/TransferProtocol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/SourceLevelDebugPkg/Include/TransferProtocol.h b/SourceLevelDebugPkg/Include/TransferProtocol.h
index 53e9f7cf36..42add9164a 100644
--- a/SourceLevelDebugPkg/Include/TransferProtocol.h
+++ b/SourceLevelDebugPkg/Include/TransferProtocol.h
@@ -2,7 +2,7 @@
Transfer protocol defintions used by debug agent and host. It is only
intended to be used by Debug related module implementation.
- Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
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
@@ -53,6 +53,8 @@ typedef struct {
#define DEBUG_COMMAND_REQUEST (0 << 7)
#define DEBUG_COMMAND_RESPONSE (1 << 7)
+#define IS_REQUEST(x) (((x)->Command & DEBUG_COMMAND_RESPONSE) == 0)
+
//
// HOST initiated commands
//