Re: [edk2-devel] [PATCH V2 0/4] Fix race condition and add event protocol

2019-07-10 Thread Laszlo Ersek
On 07/09/19 10:39, Gao, Zhichao wrote: > V1: > There is a race condition in CoreWaitForEvent function: > If an interrupt happens between CheckEvent and gIdleLoopEvent, > there would be a event pending during cpu sleep. > So it is required to check the gEventPending with the interrupt > disabled. >

[edk2-devel] [PATCH V2 0/4] Fix race condition and add event protocol

2019-07-09 Thread Gao, Zhichao
V1: There is a race condition in CoreWaitForEvent function: If an interrupt happens between CheckEvent and gIdleLoopEvent, there would be a event pending during cpu sleep. So it is required to check the gEventPending with the interrupt disabled. Implement a gEfiCpu2ProtocolGuid to fix that. The pr