mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
Rename TIME_MS_DELTA to CYCLES_PER_MS
TIME_MS_DELTA is not clear enough, rename it to CYCLES_PER_MS. Signed-off-by: Qi Yadong <yadong.qi@intel.com>
This commit is contained in:
@@ -317,7 +317,7 @@ static bool setup_trusty_info(struct vcpu *vcpu,
|
||||
mem->first_page.startup_param.size_of_this_struct =
|
||||
sizeof(struct trusty_startup_param);
|
||||
mem->first_page.startup_param.mem_size = mem_size;
|
||||
mem->first_page.startup_param.tsc_per_ms = TIME_MS_DELTA;
|
||||
mem->first_page.startup_param.tsc_per_ms = CYCLES_PER_MS;
|
||||
mem->first_page.startup_param.trusty_mem_base = TRUSTY_EPT_REBASE_GPA;
|
||||
|
||||
/* According to trusty boot protocol, it will use RDI as the
|
||||
|
@@ -105,7 +105,7 @@
|
||||
#define IOMMU_LOCK(u) spinlock_obtain(&((u)->lock))
|
||||
#define IOMMU_UNLOCK(u) spinlock_release(&((u)->lock))
|
||||
|
||||
#define DMAR_OP_TIMEOUT TIME_MS_DELTA
|
||||
#define DMAR_OP_TIMEOUT CYCLES_PER_MS
|
||||
|
||||
#define DMAR_WAIT_COMPLETION(offset, condition, status) \
|
||||
do { \
|
||||
@@ -114,7 +114,7 @@
|
||||
status = iommu_read32(dmar_uint, offset); \
|
||||
if (condition) \
|
||||
break; \
|
||||
ASSERT((rdtsc() - start < TIME_MS_DELTA), \
|
||||
ASSERT((rdtsc() - start < CYCLES_PER_MS), \
|
||||
"DMAR OP Timeout!"); \
|
||||
asm volatile ("pause" ::: "memory"); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user