Re: MemoryFence()
Andrew Fish <afish@...>
On Feb 5, 2021, at 11:35 AM, Laszlo Ersek <lersek@...> wrote:Looks like we are heading for a crash too. So good thing we are thinking about it. The good news is EFI does not have threads and the PI MpServices protocol is indirectly messaging based as you wait for a function to return or an event. Like C it can be abused since the memory is shared. Ironically the complexity of writing thread safe code in C and the fact that back in the day a big pool of the x86 firmware writers were hardware folks who wrote in x86 assembler is one of the reasons EFI ended up with. No threads an a cooperative event model….. Thanks, Andrew Fish Laszlo |
|