acrn-hypervisor/hypervisor/arch/x86
Shiqing Gao 67038794af hv: treewide: convert some MACROs to inline functions
MISRA-C requires that each parameter in the MACRO shall be in brackets.

In some cases, adding brackets for all of the parameters may not be a
perfect solution.
For example, it may affect the code readability when there are many
parameters used in the MACRO.
And duplicated brackets will appear when one MACRO called another MACRO
which is using same parameters.

This patch convert some MACROs to inline functions to avoid such cases.

v1 -> v2:
 * Remove the unnecessary changes in hypervisor/bsp/uefi/efi/boot.h

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2018-09-04 12:27:18 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
guest hv: treewide: convert some MACROs to inline functions 2018-09-04 12:27:18 +08:00
assign.c hv:Replace vuart pointer with instance in structure vm 2018-08-27 09:49:12 +08:00
cpu_primary.S hv: mmu: cleanup mmu.h 2018-09-03 09:32:49 +08:00
cpu_save_boot_ctx.S hv: move boot_ctx offset definitions 2018-08-14 13:05:06 +08:00
cpu_state_tbl.c HV: Add const qualifiers where required 2018-08-17 10:02:12 +08:00
cpu.c hv: mmu: add 1GB page capability check when CPU boot 2018-09-03 09:32:49 +08:00
cpuid.c hv: vcpuid: disable some features in cpuid 2018-08-23 08:54:27 +08:00
ept.c hv: ept: remove find_next_table 2018-09-03 09:32:49 +08:00
gdt.c HV: Removed the unused parameters and union from gdt 2018-08-27 09:40:25 +08:00
idt.S hv: Leave interrupts disabled during vmexit - ACRN partition mode 2018-08-31 08:48:47 +08:00
io.c hv: treewide: convert some MACROs to inline functions 2018-09-04 12:27:18 +08:00
ioapic.c hv: pirq: change the order of functions within irq.c 2018-08-17 14:25:52 +08:00
irq.c hv: pirq: use a bitmap to maintain irq use status 2018-08-22 12:52:43 +08:00
Kconfig security: Enable '-fpie, -pie' options 2018-08-31 11:18:26 +08:00
lapic.c hv:fixed MISRA-C return value violations 2018-08-21 09:54:45 +08:00
mmu.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
mtrr.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
notify.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
pagetable.c hv: mmu: rename PTT_HOST to PTT_PRIMARY 2018-09-03 09:32:49 +08:00
pm.c pm: use cpu_context for s3 save/restore 2018-08-07 09:55:13 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c hv: add compile time assert for static checks 2018-08-14 13:05:06 +08:00
timer.c hv:Changed several APIs to void type 2018-08-23 08:54:54 +08:00
trampoline.S hv: mmu: cleanup mmu.h 2018-09-03 09:32:49 +08:00
trusty.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
virq.c hv:Replace vpic pointer with instance in structure vm 2018-08-27 09:49:12 +08:00
vmexit.c hv: treewide: convert some MACROs to inline functions 2018-09-04 12:27:18 +08:00
vmx_asm.S fix spec_ctrl msr save/restore 2018-08-16 16:24:13 +08:00
vmx.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
vtd.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
wakeup.S pm: use cpu_context for s3 save/restore 2018-08-07 09:55:13 +08:00