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

@ -138,8 +138,6 @@
#ifndef ASSEMBLER
#define BUS_LOCK "lock ; "
#define AP_MASK (((1UL << get_pcpu_nums()) - 1UL) & ~(1UL << 0U))
/**

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) \

View File

@ -29,7 +29,8 @@
#ifndef BITS_H
#define BITS_H
#include <cpu.h>
#include <atomic.h>
/**
*
* INVALID_BIT_INDEX means when input paramter is zero,