Skip to content

Commit 565f3cb

Browse files
jsun26intelacrnsi
authored andcommitted
HV: move dmar parse code to acpi parser folder
The acpi parse code would not go FuSa cert, move acpi parser related code to a separate folder is helpful on FuSa isolation. This patch moves dmar parse code; Tracked-On: #3107 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 3979869 commit 565f3cb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

hypervisor/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,14 @@ ifneq (,$(wildcard scenarios/$(SCENARIO_NAME)/pt_dev.c))
156156
C_SRCS += scenarios/$(SCENARIO_NAME)/pt_dev.c
157157
endif
158158

159+
# ACPI parsing component
160+
# This part should be isolated from FuSa Cert
161+
ifeq ($(CONFIG_DMAR_PARSE_ENABLED),y)
162+
C_SRCS += acpi_parser/dmar_parse.c
163+
endif
164+
159165
C_SRCS += boot/acpi.c
160166
C_SRCS += boot/dmar_info.c
161-
C_SRCS += boot/dmar_parse.c
162167
C_SRCS += boot/cmdline.c
163168
C_SRCS += boot/guest/vboot_wrapper.c
164169
C_SRCS += boot/guest/deprivilege_boot.c

hypervisor/boot/dmar_parse.c renamed to hypervisor/acpi_parser/dmar_parse.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
#ifdef CONFIG_DMAR_PARSE_ENABLED
87
#include <types.h>
98
#include <logmsg.h>
109
#include <host_pm.h>
@@ -296,5 +295,3 @@ int32_t parse_dmar_table(struct dmar_info *plat_dmar_info)
296295

297296
return 0;
298297
}
299-
300-
#endif

0 commit comments

Comments
 (0)