Re: [edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state

2015-07-09 Thread Brian J. Johnson
Reviewed, and tested in OVMF and a h/w environment with our internal debugger. Seems good. Reviewed-by: Brian J. Johnson Tested-by: Brian J. Johnson On 07/08/2015 11:50 PM, Jeff Fan wrote: > In DEBUG_AGENT_INIT_POSTMEM_SEC case, caller may disable/restore CPU interrupt > to protect the stack/

[edk2] [Patch] SourceLevelDebugPkg/SecPeiDebugAgentLib: Restore CPU interrupt state

2015-07-08 Thread Jeff Fan
In DEBUG_AGENT_INIT_POSTMEM_SEC case, caller may disable/restore CPU interrupt to protect the stack/heap migration. SecPeiDebugAgentLib cannot always enable CPU interrupt. Otherwise system may crash during stack/heap migration. SecPeiDebugAgentLib should restore original CPU interrupt state in DEBU