From 5d51ba26317032f198654539249e946c24e911df Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Mon, 27 Apr 2015 05:21:17 +0000 Subject: [PATCH] SourceLevelDebugPkg/DebugAgent: Add InterruptFlag field Add InterruptFlag field in DEBUG_AGENT_FLAG. This field is used to save/restore EFLAGS.IF across Stepping command execution. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17203 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DebugAgent/DebugAgentCommon/DebugAgent.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h index 6a9e316f45..64e4c3eaf0 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h +++ b/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/DebugAgent.h @@ -93,6 +93,7 @@ typedef struct { #define DEBUG_AGENT_FLAG_STEPPING BIT3 #define DEBUG_AGENT_FLAG_CHECK_MAILBOX_IN_HOB BIT4 #define DEBUG_AGENT_FLAG_INIT_ARCH BIT5|BIT6 +#define DEBUG_AGENT_FLAG_INTERRUPT_FLAG BIT7 #define DEBUG_AGENT_FLAG_BREAK_ON_NEXT_SMI BIT32 #define DEBUG_AGENT_FLAG_PRINT_ERROR_LEVEL (BIT33|BIT34|BIT35|BIT36) #define DEBUG_AGENT_FLAG_BREAK_BOOT_SCRIPT BIT37 @@ -117,7 +118,8 @@ typedef union { UINT32 SteppingFlag : 1; // 1: Agent is running stepping command UINT32 CheckMailboxInHob : 1; // 1: Need to check mailbox saved in HOB UINT32 InitArch : 2; // value of DEBUG_DATA_RESPONSE_ARCH_MODE - UINT32 Reserved1 : 25; + UINT32 InterruptFlag : 1; // 1: EFLAGS.IF is set + UINT32 Reserved1 : 24; // // Higher 32bits to control the behavior of DebugAgent // -- 2.39.2