From 691468a361342ef6c34be41069e1227b6f5407f1 Mon Sep 17 00:00:00 2001 From: Arindam Roy Date: Thu, 21 Mar 2019 12:02:30 -0700 Subject: [PATCH] HV: Remove hypervisor.h from bsp folder Re-organize the code to remove usage of hypervisor.h from bsp folder, without changing any functionality. Tracked-On: #2694 Signed-off-by: Arindam Roy --- hypervisor/bsp/const_dmar.c | 1 - hypervisor/bsp/firmware_sbl.c | 4 +++- hypervisor/bsp/firmware_uefi.c | 9 ++++++++- hypervisor/bsp/firmware_wrapper.c | 4 +++- hypervisor/include/arch/x86/multiboot.h | 1 + 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/hypervisor/bsp/const_dmar.c b/hypervisor/bsp/const_dmar.c index fd8259608..796e05cb6 100644 --- a/hypervisor/bsp/const_dmar.c +++ b/hypervisor/bsp/const_dmar.c @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include #include #include diff --git a/hypervisor/bsp/firmware_sbl.c b/hypervisor/bsp/firmware_sbl.c index 603a8f4d5..7830e4922 100644 --- a/hypervisor/bsp/firmware_sbl.c +++ b/hypervisor/bsp/firmware_sbl.c @@ -6,7 +6,9 @@ /* this is for both SBL and ABL platform */ -#include +#include +#include +#include #include static void sbl_init(void) diff --git a/hypervisor/bsp/firmware_uefi.c b/hypervisor/bsp/firmware_uefi.c index 4ed1f97a8..e5f3b1c15 100644 --- a/hypervisor/bsp/firmware_uefi.c +++ b/hypervisor/bsp/firmware_uefi.c @@ -6,7 +6,14 @@ /* this is for UEFI platform */ -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/hypervisor/bsp/firmware_wrapper.c b/hypervisor/bsp/firmware_wrapper.c index db6ce849a..4aa71d0c6 100644 --- a/hypervisor/bsp/firmware_wrapper.c +++ b/hypervisor/bsp/firmware_wrapper.c @@ -4,8 +4,10 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include #include +#include +#include +#include #include #include #include diff --git a/hypervisor/include/arch/x86/multiboot.h b/hypervisor/include/arch/x86/multiboot.h index ea68a6e8d..d45839c2b 100644 --- a/hypervisor/include/arch/x86/multiboot.h +++ b/hypervisor/include/arch/x86/multiboot.h @@ -7,6 +7,7 @@ #ifndef MULTIBOOT_H #define MULTIBOOT_H +#include #define MULTIBOOT_INFO_MAGIC 0x2BADB002U #define MULTIBOOT_INFO_HAS_CMDLINE 0x00000004U #define MULTIBOOT_INFO_HAS_MODS 0x00000008U