[edk2] [PATCH 2/3] OvmfPkg: Fix VS20xx and DebugAgent ASSERT()

2015-10-13 Thread Michael Kinney
Fix build breaks when building with VS20xx. The loop that fills the BaseExtractGuidedSectionLib handler table with zeros must use a volatile variable to prevent the optimizing compiler from adding a call to a compiler intrinsic. Also, update initialization of SEC phase to initialze the state of

Re: [edk2] [PATCH 2/3] OvmfPkg: Fix VS20xx and DebugAgent ASSERT()

2015-10-13 Thread Laszlo Ersek
On 10/13/15 20:47, Jordan Justen wrote: > On 2015-10-13 10:49:23, Michael Kinney wrote: >> Fix build breaks when building with VS20xx. The >> loop that fills the BaseExtractGuidedSectionLib >> handler table with zeros must use a volatile variable >> to prevent the optimizing compiler from adding

Re: [edk2] [PATCH 2/3] OvmfPkg: Fix VS20xx and DebugAgent ASSERT()

2015-10-13 Thread Kinney, Michael D
. Mike >-Original Message- >From: Laszlo Ersek [mailto:ler...@redhat.com] >Sent: Tuesday, October 13, 2015 11:56 AM >To: Justen, Jordan L; Kinney, Michael D; edk2-de...@ml01.01.org >Subject: Re: [edk2] [PATCH 2/3] OvmfPkg: Fix VS20xx and DebugAgent ASSERT() > >On 1