mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: treewide: convert hexadecimals used in bitops to unsigned
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -7,21 +7,21 @@
|
||||
#include <hypervisor.h>
|
||||
|
||||
/* IOAPIC id */
|
||||
#define SBL_IOAPIC_ID 8
|
||||
#define SBL_IOAPIC_ID 8U
|
||||
/* IOAPIC base address */
|
||||
#define SBL_IOAPIC_ADDR 0xfec00000
|
||||
#define SBL_IOAPIC_ADDR 0xfec00000U
|
||||
/* IOAPIC range size */
|
||||
#define SBL_IOAPIC_SIZE 0x100000
|
||||
#define SBL_IOAPIC_SIZE 0x100000U
|
||||
/* Local APIC base address */
|
||||
#define SBL_LAPIC_ADDR 0xfee00000
|
||||
#define SBL_LAPIC_ADDR 0xfee00000U
|
||||
/* Local APIC range size */
|
||||
#define SBL_LAPIC_SIZE 0x100000
|
||||
#define SBL_LAPIC_SIZE 0x100000U
|
||||
/* Number of PCI IRQ assignments */
|
||||
#define SBL_PCI_IRQ_ASSIGNMENT_NUM 28
|
||||
|
||||
#ifndef CONFIG_DMAR_PARSE_ENABLED
|
||||
static struct dmar_dev_scope default_drhd_unit_dev_scope0[] = {
|
||||
{ .bus = 0, .devfun = DEVFUN(0x2, 0), },
|
||||
{ .bus = 0U, .devfun = DEVFUN(0x2U, 0U), },
|
||||
};
|
||||
|
||||
static struct dmar_drhd drhd_info_array[] = {
|
||||
|
@@ -83,19 +83,19 @@ extern struct multiboot_header *Multiboot_Header;
|
||||
/*
|
||||
* Multiboot information structure.
|
||||
*/
|
||||
#define MULTIBOOT_INFO_MAGIC 0x2BADB002
|
||||
#define MULTIBOOT_INFO_HAS_MEMORY 0x00000001
|
||||
#define MULTIBOOT_INFO_HAS_BOOT_DEVICE 0x00000002
|
||||
#define MULTIBOOT_INFO_HAS_CMDLINE 0x00000004
|
||||
#define MULTIBOOT_INFO_HAS_MODS 0x00000008
|
||||
#define MULTIBOOT_INFO_HAS_AOUT_SYMS 0x00000010
|
||||
#define MULTIBOOT_INFO_HAS_ELF_SYMS 0x00000020
|
||||
#define MULTIBOOT_INFO_HAS_MMAP 0x00000040
|
||||
#define MULTIBOOT_INFO_HAS_DRIVES 0x00000080
|
||||
#define MULTIBOOT_INFO_HAS_CONFIG_TABLE 0x00000100
|
||||
#define MULTIBOOT_INFO_HAS_LOADER_NAME 0x00000200
|
||||
#define MULTIBOOT_INFO_HAS_APM_TABLE 0x00000400
|
||||
#define MULTIBOOT_INFO_HAS_VBE 0x00000800
|
||||
#define MULTIBOOT_INFO_MAGIC 0x2BADB002U
|
||||
#define MULTIBOOT_INFO_HAS_MEMORY 0x00000001U
|
||||
#define MULTIBOOT_INFO_HAS_BOOT_DEVICE 0x00000002U
|
||||
#define MULTIBOOT_INFO_HAS_CMDLINE 0x00000004U
|
||||
#define MULTIBOOT_INFO_HAS_MODS 0x00000008U
|
||||
#define MULTIBOOT_INFO_HAS_AOUT_SYMS 0x00000010U
|
||||
#define MULTIBOOT_INFO_HAS_ELF_SYMS 0x00000020U
|
||||
#define MULTIBOOT_INFO_HAS_MMAP 0x00000040U
|
||||
#define MULTIBOOT_INFO_HAS_DRIVES 0x00000080U
|
||||
#define MULTIBOOT_INFO_HAS_CONFIG_TABLE 0x00000100U
|
||||
#define MULTIBOOT_INFO_HAS_LOADER_NAME 0x00000200U
|
||||
#define MULTIBOOT_INFO_HAS_APM_TABLE 0x00000400U
|
||||
#define MULTIBOOT_INFO_HAS_VBE 0x00000800U
|
||||
|
||||
#if !defined(_LOCORE)
|
||||
struct multiboot_info {
|
||||
|
Reference in New Issue
Block a user