diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2015-04-01 08:23:11 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2015-04-01 08:23:11 +0000 |
commit | 9b8e41488039319c04d8238483892133d88c8056 (patch) | |
tree | cca2e421f3b97149762a4d944a370420ed3c6982 /OvmfPkg/XenBusDxe | |
parent | 5f239ef794830abc769a61bd4532597ff89ffa32 (diff) | |
download | edk2-9b8e41488039319c04d8238483892133d88c8056.tar.gz edk2-9b8e41488039319c04d8238483892133d88c8056.tar.bz2 edk2-9b8e41488039319c04d8238483892133d88c8056.zip |
OvmfPkg/XenBusDxe: Fix build issue with VS2010
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17091 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe')
-rw-r--r-- | OvmfPkg/XenBusDxe/TestAndClearBit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OvmfPkg/XenBusDxe/TestAndClearBit.c b/OvmfPkg/XenBusDxe/TestAndClearBit.c index 410677ee8a..ac01b3ce50 100644 --- a/OvmfPkg/XenBusDxe/TestAndClearBit.c +++ b/OvmfPkg/XenBusDxe/TestAndClearBit.c @@ -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 @@ TestAndClearBit ( // 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) {
|