mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-12 20:39:59 +00:00
hv: add compile time assert for static checks
Add two files to do compile time assert. One is arch specific, and put in hypervisor/arch/x86/. The other one is common, and put in hypervisor/common/. If the statement is not true, there will be error during compile time. The file will not increase the size of HV binary. Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -140,6 +140,7 @@ C_SRCS += arch/x86/cpu_state_tbl.c
|
||||
C_SRCS += arch/x86/mtrr.c
|
||||
C_SRCS += arch/x86/pm.c
|
||||
S_SRCS += arch/x86/wakeup.S
|
||||
C_SRCS += arch/x86/static_checks.c
|
||||
C_SRCS += arch/x86/guest/vcpu.c
|
||||
C_SRCS += arch/x86/guest/vm.c
|
||||
C_SRCS += arch/x86/guest/vlapic.c
|
||||
@@ -165,6 +166,7 @@ C_SRCS += common/schedule.c
|
||||
C_SRCS += common/vm_load.c
|
||||
C_SRCS += common/io_request.c
|
||||
C_SRCS += common/ptdev.c
|
||||
C_SRCS += common/static_checks.c
|
||||
|
||||
ifdef STACK_PROTECTOR
|
||||
C_SRCS += common/stack_protector.c
|
||||
|
Reference in New Issue
Block a user