mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-08 20:29:40 +00:00
hv: remove unused MACROs
MISRA-C states that redundant macros reduce the maintainability of code. In some cases, we would like to keep the current unused macros for code completeness, such as cpu registers. These macros might be used later. This patch removes some unused macros that is not critical for code completeness. v1 -> v2: * Keep TRUSTY_VERSION in trusty.c. Yadong will cook another patch which will utilize TRUSTY_VERSION. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -6,12 +6,6 @@
|
||||
|
||||
#include <hypervisor.h>
|
||||
|
||||
/* Rate range 1 to 1000 or 1uSec to 1mSec */
|
||||
#define APIC_TIMER_MAX 0xffffffffU
|
||||
#define HYPE_PERIOD_MAX 1000
|
||||
#define APIC_DIVIDE_BY_ONE 0x0b
|
||||
#define PIT_TARGET 0x3FFFU
|
||||
|
||||
/* xAPIC/x2APIC Interrupt Command Register (ICR) structure */
|
||||
union apic_icr {
|
||||
uint64_t value;
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#include <hypervisor.h>
|
||||
|
||||
#define EXCEPTION_ERROR_CODE_VALID 8U
|
||||
#define INTERRPUT_QUEUE_BUFF_SIZE 255
|
||||
|
||||
#define ACRN_DBG_INTR 6U
|
||||
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*/
|
||||
#define IOMMU_INIT_BUS_LIMIT (0xfU)
|
||||
|
||||
#define PAGE_MASK (0xFFFUL)
|
||||
#define LEVEL_WIDTH 9U
|
||||
|
||||
#define ROOT_ENTRY_LOWER_PRESENT_POS (0U)
|
||||
@@ -84,8 +83,6 @@ dmar_set_bitslice(uint64_t var, uint64_t mask,
|
||||
#define DMAR_MSI_REDIRECTION_CPU (0 << DMAR_MSI_REDIRECTION_SHIFT)
|
||||
#define DMAR_MSI_REDIRECTION_LOWPRI (1 << DMAR_MSI_REDIRECTION_SHIFT)
|
||||
|
||||
#define DMAR_OP_TIMEOUT CYCLES_PER_MS
|
||||
|
||||
enum dmar_cirg_type {
|
||||
DMAR_CIRG_RESERVED = 0,
|
||||
DMAR_CIRG_GLOBAL,
|
||||
|
Reference in New Issue
Block a user