mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 16:36:58 +00:00
MISARC has requirements about Marco redefinition, usage of ++ or -- and assignment operator in boolean expression. This patch is used to solve these violations. The modifications are summarized as following: 1.The HC_VM_SET_MEMORY_REGION, HC_VM_GPA2HPA, HC_VM_SET_MEMORY_REGIONS are redefined twice in acrn_hv_des.h, so delete them to solve the macro redefinition violations. 2.The macro BUS_LOCK are redefined in bits.h and atomic.h, then delete the declaration in both two files, add a new declaration in cpu.h and include the header file. 3.modify the code to solve the improper usage of -- operators in string.c. 4.modify the while loop to for loop to avoid assignment operator in boolean expression in vlapic.c. v1 -> v2: *Modify the format of commit logs and signed-off name. *Modify the code format from 'd = d-1;' to 'd--;' to be better. Signed-off-by: Junjun Shan <junjun.shan@intel.com> |
||
---|---|---|
.. | ||
configs | ||
guest | ||
assign.c | ||
cpu_primary.S | ||
cpu_save_boot_ctx.S | ||
cpu_state_tbl.c | ||
cpu.c | ||
cpuid.c | ||
ept.c | ||
gdt.c | ||
idt.S | ||
io.c | ||
ioapic.c | ||
irq.c | ||
Kconfig | ||
lapic.c | ||
mmu.c | ||
mtrr.c | ||
notify.c | ||
pagetable.c | ||
pm.c | ||
retpoline-thunk.S | ||
static_checks.c | ||
timer.c | ||
trampoline.S | ||
trusty.c | ||
virq.c | ||
vmexit.c | ||
vmx_asm.S | ||
vmx.c | ||
vtd.c | ||
wakeup.S |