mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-18 15:28:43 +00:00
hv: dmar_parse: remove dynamic memory allocation
This patch removes the dynamic memory allocation in dmar_parse.c. v1 -> v2: - rename 'const_dmar.c' to 'dmar_info.c' and move it to 'boot' directory - add CONFIG_DMAR_PARSE_ENABLED check for function declaration Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
5629ade9a0
commit
773889bb65
@@ -156,6 +156,7 @@ C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c
|
||||
endif
|
||||
|
||||
C_SRCS += boot/acpi.c
|
||||
C_SRCS += boot/dmar_info.c
|
||||
C_SRCS += boot/dmar_parse.c
|
||||
C_SRCS += boot/cmdline.c
|
||||
C_SRCS += boot/guest/vboot_wrapper.c
|
||||
@@ -243,8 +244,6 @@ C_SRCS += dm/vpci/pci_pt.c
|
||||
C_SRCS += dm/vpci/vmsi.c
|
||||
C_SRCS += dm/vpci/vmsix.c
|
||||
|
||||
C_SRCS += bsp/const_dmar.c
|
||||
|
||||
# retpoline support
|
||||
ifeq (true, $(shell [ $(GCC_MAJOR) -eq 7 ] && [ $(GCC_MINOR) -ge 3 ] && echo true))
|
||||
CFLAGS += -mindirect-branch=thunk-extern -mindirect-branch-register
|
||||
|
Reference in New Issue
Block a user