hv:Move BUS_LOCK to atomic.h

now this MACRO is used in atomic.h and bits.h,
move it from cpu.h to atomic.h to avoid
reverse dependency(i.e. from lower layer to upper one)

Tracked-On: #1842
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2019-05-09 13:20:29 +08:00
committed by ACRN System Integration
parent eff44fb056
commit 350d6a9eb6
3 changed files with 5 additions and 4 deletions

View File

@@ -29,7 +29,9 @@
#ifndef ATOMIC_H
#define ATOMIC_H
#include <cpu.h>
#include <types.h>
#define BUS_LOCK "lock ; "
#define build_atomic_load(name, size, type) \
static inline type name(const volatile type *ptr) \