mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-19 01:53:17 +00:00
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:
committed by
ACRN System Integration
parent
eff44fb056
commit
350d6a9eb6
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user