Revision: 17091
http://sourceforge.net/p/edk2/code/17091
Author: jljusten
Date: 2015-04-01 08:23:11 +0000 (Wed, 01 Apr 2015)
Log Message:
-----------
OvmfPkg/XenBusDxe: Fix build issue with VS2010
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Modified Paths:
--------------
trunk/edk2/OvmfPkg/XenBusDxe/TestAndClearBit.c
Modified: trunk/edk2/OvmfPkg/XenBusDxe/TestAndClearBit.c
===================================================================
--- trunk/edk2/OvmfPkg/XenBusDxe/TestAndClearBit.c 2015-04-01 08:23:01 UTC
(rev 17090)
+++ trunk/edk2/OvmfPkg/XenBusDxe/TestAndClearBit.c 2015-04-01 08:23:11 UTC
(rev 17091)
@@ -2,6 +2,7 @@
Implementation of TestAndClearBit using compare-exchange primitive
Copyright (C) 2015, Linaro Ltd.
+ Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
@@ -32,7 +33,7 @@
// ensure we round towards -Inf, and end up with a positive shift in
// 'Bit', even if 'Bit' itself is negative.
//
- Address += (Bit >> 4) * sizeof(UINT16);
+ Address = (VOID*)((UINT8*) Address + ((Bit >> 4) * sizeof(UINT16)));
Mask = 1U << (Bit & 15);
for (Word = *(UINT16 *) Address; Word & Mask; Word = Read) {
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits