mirror of https://github.com/acidanthera/audk.git
Add volatile to modify LockValue in ReleaseSpinLock().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2008 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
733f4094ee
commit
9710b9a67c
|
@ -272,7 +272,7 @@ ReleaseSpinLock (
|
||||||
IN OUT SPIN_LOCK *SpinLock
|
IN OUT SPIN_LOCK *SpinLock
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SPIN_LOCK LockValue;
|
volatile SPIN_LOCK LockValue;
|
||||||
|
|
||||||
ASSERT (SpinLock != NULL);
|
ASSERT (SpinLock != NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue