mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: config: adapt to the generated config.h
This patch drops "#include <bsp_cfg.h>" and include the generated config.h in CFLAGS for the configuration data. Also make sure that all configuration data have the 'CONFIG_' prefix. v4 -> v5: * No changes. v3 -> v4: * Add '-include config.h' to hypervisor/bsp/uefi/efi/Makefile. * Update comments mentioning bsp_cfg.h. v2 -> v3: * Include config.h on the command line instead of in any header or source to avoid including config.h multiple times. * Add config.h as an additional dependency for source compilation. v1 -> v2: * No changes. Signed-off-by: Junjie Mao <junjie.mao@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define IOAPIC_MAX_LINES 120
|
||||
#define NR_LEGACY_IRQ 16
|
||||
#define NR_LEGACY_PIN NR_LEGACY_IRQ
|
||||
#define NR_MAX_GSI (NR_IOAPICS*IOAPIC_MAX_LINES)
|
||||
#define NR_MAX_GSI (CONFIG_NR_IOAPICS*IOAPIC_MAX_LINES)
|
||||
|
||||
#define GSI_MASK_IRQ(irq) irq_gsi_mask_unmask((irq), true)
|
||||
#define GSI_UNMASK_IRQ(irq) irq_gsi_mask_unmask((irq), false)
|
||||
|
@@ -32,10 +32,10 @@ struct per_cpu_region {
|
||||
struct host_gdt gdt;
|
||||
struct tss_64 tss;
|
||||
int state;
|
||||
uint8_t mc_stack[STACK_SIZE] __aligned(16);
|
||||
uint8_t df_stack[STACK_SIZE] __aligned(16);
|
||||
uint8_t sf_stack[STACK_SIZE] __aligned(16);
|
||||
uint8_t stack[STACK_SIZE] __aligned(16);
|
||||
uint8_t mc_stack[CONFIG_STACK_SIZE] __aligned(16);
|
||||
uint8_t df_stack[CONFIG_STACK_SIZE] __aligned(16);
|
||||
uint8_t sf_stack[CONFIG_STACK_SIZE] __aligned(16);
|
||||
uint8_t stack[CONFIG_STACK_SIZE] __aligned(16);
|
||||
char logbuf[LOG_MESSAGE_MAX_SIZE];
|
||||
uint8_t lapic_id;
|
||||
} __aligned(CPU_PAGE_SIZE); //per_cpu_region size aligned with CPU_PAGE_SIZE
|
||||
|
@@ -12,8 +12,7 @@
|
||||
*
|
||||
* DESCRIPTION
|
||||
*
|
||||
* This file includes config header file "bsp_cfg.h" and other
|
||||
* hypervisor used header files.
|
||||
* This file includes hypervisor used header files.
|
||||
* It should be included in all the source files.
|
||||
*
|
||||
*
|
||||
@@ -23,7 +22,6 @@
|
||||
|
||||
/* Include config header file containing config options */
|
||||
#include <types.h>
|
||||
#include "bsp_cfg.h"
|
||||
#include "acrn_common.h"
|
||||
#include <acrn_hv_defs.h>
|
||||
#include <hv_lib.h>
|
||||
|
Reference in New Issue
Block a user