mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: fix misra violation on platform clos array
MISRA C requires specified bounds for arrays declaration, previous declaration of platform_clos_array in board.h does not meet the requirement. Tracked-On: #3987 Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#define BOARD_H
|
||||
|
||||
#include <types.h>
|
||||
#include <misc_cfg.h>
|
||||
#include <host_pm.h>
|
||||
|
||||
/* forward declarations */
|
||||
@@ -18,8 +19,7 @@ struct platform_clos_info {
|
||||
};
|
||||
|
||||
extern struct dmar_info plat_dmar_info;
|
||||
extern struct platform_clos_info platform_clos_array[];
|
||||
extern uint16_t platform_clos_num;
|
||||
extern struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
|
||||
extern const struct cpu_state_table board_cpu_state_tbl;
|
||||
|
||||
/* board specific functions */
|
||||
|
@@ -335,15 +335,12 @@
|
||||
#define MSR_IA32_QM_EVTSEL 0x00000C8DU
|
||||
#define MSR_IA32_QM_CTR 0x00000C8EU
|
||||
#define MSR_IA32_PQR_ASSOC 0x00000C8FU
|
||||
#define MSR_IA32_L3_MASK_0 0x00000C90U
|
||||
#define MSR_IA32_L3_MASK_BASE 0x00000C90U
|
||||
#define MSR_IA32_XSS 0x00000DA0U
|
||||
#define MSR_IA32_PKG_HDC_CTL 0x00000DB0U
|
||||
#define MSR_IA32_PM_CTL1 0x00000DB1U
|
||||
#define MSR_IA32_THREAD_STALL 0x00000DB2U
|
||||
#define MSR_IA32_L2_MASK_0 0x00000D10U
|
||||
#define MSR_IA32_L2_MASK_1 0x00000D11U
|
||||
#define MSR_IA32_L2_MASK_2 0x00000D12U
|
||||
#define MSR_IA32_L2_MASK_3 0x00000D13U
|
||||
#define MSR_IA32_L2_MASK_BASE 0x00000D10U
|
||||
#define MSR_IA32_BNDCFGS 0x00000D90U
|
||||
#define MSR_IA32_EFER 0xC0000080U
|
||||
#define MSR_IA32_STAR 0xC0000081U
|
||||
|
Reference in New Issue
Block a user