mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-06 19:30:46 +00:00
hv: use macro instead of specify number
use macro instead of specify number Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -458,7 +458,7 @@ void init_e820(void)
|
||||
(HPA2HVA((uint64_t)boot_regs[1]));
|
||||
|
||||
pr_info("Multiboot info detected\n");
|
||||
if ((mbi->mi_flags & 0x40U) != 0U) {
|
||||
if ((mbi->mi_flags & MULTIBOOT_INFO_HAS_MMAP) != 0U) {
|
||||
struct multiboot_mmap *mmap =
|
||||
(struct multiboot_mmap *)
|
||||
HPA2HVA((uint64_t)mbi->mi_mmap_addr);
|
||||
|
Reference in New Issue
Block a user