Ovmf/Xen: port XenBusDxe to other architectures
This patch updates XenBusDxe to use the 16-bit compare and exchange function that was introduced for this purpose to the BaseSynchronizationLib. It also provides a new generic implementation of TestAndClearBit () using the same 16-bit compare and exchange, making this module fully architecture agnostic. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16975 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
#include <IndustryStandard/Xen/memory.h>
|
||||
|
||||
#include <Library/XenHypercallLib.h>
|
||||
#include <Library/SynchronizationLib.h>
|
||||
|
||||
#include "GrantTable.h"
|
||||
#include "InterlockedCompareExchange16.h"
|
||||
|
||||
#define NR_RESERVED_ENTRIES 8
|
||||
|
||||
|
Reference in New Issue
Block a user