mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 06:19:24 +00:00
acrn-config: round HI_MMIO_START/HI_MMIO_END to the closest 1G
Rounding HI_MMIO_START, HI_MMIO_END to the closest 1G. This avoids round up logic in the hypervisor. Tracked-On: #4586 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
committed by
wenlingz
parent
b922934867
commit
5e8fd7581e
@@ -466,6 +466,9 @@ def undline_name(name):
|
||||
|
||||
return name_str
|
||||
|
||||
def round_down(addr, mem_align):
|
||||
"""Keep memory align"""
|
||||
return (addr & (~(mem_align - 1)))
|
||||
|
||||
def round_up(addr, mem_align):
|
||||
"""Keep memory align"""
|
||||
|
Reference in New Issue
Block a user