mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-30 06:54:48 +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:
parent
eff44fb056
commit
350d6a9eb6
@ -138,8 +138,6 @@
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
#define BUS_LOCK "lock ; "
|
||||
|
||||
#define AP_MASK (((1UL << get_pcpu_nums()) - 1UL) & ~(1UL << 0U))
|
||||
|
||||
/**
|
||||
|
@ -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) \
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user