mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 12:19:06 +00:00
hv: add suffix(U/UL) to come up MISRA-C into include
MISRA-C required the suffix(U/UL), such as: (1) ---> (1U) (1) ---> (1UL) (1U << 0) ---> (1U << 0U) This patch will add the suffix(U/UL) to come up MISRA-C into hypervisor/include directory. Tracked-On: #1468 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -42,12 +42,12 @@
|
||||
/* IOAPIC device model info */
|
||||
#define VIOAPIC_RTE_NUM 48U /* vioapic pins */
|
||||
|
||||
#if VIOAPIC_RTE_NUM < 24
|
||||
#if VIOAPIC_RTE_NUM < 24U
|
||||
#error "VIOAPIC_RTE_NUM must be larger than 23"
|
||||
#endif
|
||||
|
||||
/* Generic VM flags from guest OS */
|
||||
#define SECURE_WORLD_ENABLED (1UL<<0) /* Whether secure world is enabled */
|
||||
#define SECURE_WORLD_ENABLED (1UL<<0U) /* Whether secure world is enabled */
|
||||
|
||||
/**
|
||||
* @brief Hypercall
|
||||
@@ -524,9 +524,9 @@ struct pm_s_state_data {
|
||||
#define PMCMD_STATE_NUM_MASK 0x0000ff00U
|
||||
#define PMCMD_TYPE_MASK 0x000000ffU
|
||||
|
||||
#define PMCMD_VMID_SHIFT 24
|
||||
#define PMCMD_VCPUID_SHIFT 16
|
||||
#define PMCMD_STATE_NUM_SHIFT 8
|
||||
#define PMCMD_VMID_SHIFT 24U
|
||||
#define PMCMD_VCPUID_SHIFT 16U
|
||||
#define PMCMD_STATE_NUM_SHIFT 8U
|
||||
|
||||
enum pm_cmd_type {
|
||||
PMCMD_GET_PX_CNT,
|
||||
|
@@ -19,7 +19,7 @@
|
||||
* Common structures for HV/VHM
|
||||
*/
|
||||
|
||||
#define BASE_HC_ID(x, y) (((x)<<24)|(y))
|
||||
#define BASE_HC_ID(x, y) (((x)<<24U)|(y))
|
||||
|
||||
#define HC_ID 0x80UL
|
||||
|
||||
|
Reference in New Issue
Block a user