On Thu, 20 Jul 2023 at 10:28, Gerd Hoffmann <kra...@redhat.com> wrote: > > > > > mReservedMemBitmap &= (UINT32)(~MapInfo->ReservedMemBitmap); > > > > > > I'd expect modern compilers optimize that to a single instruction, > > > > You mean something along the lines of > > > > andl %reg, mReservedMemBitmap(%rip) > > > > right? > > Yes. > > > > but > > > yes, it's not guaranteed to happen, the compiler can choose to generate > > > a series of load + and + store instructions instead. > > > > That is sadly all we have on ARM, unless you use LSE atomics, which > > are optional in the architecture so we never use those in EDK2. > > ARM means v7 only or both v7+v8? >
All of it. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107099): https://edk2.groups.io/g/devel/message/107099 Mute This Topic: https://groups.io/mt/100233359/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-