mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 18:27:18 +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
159c9ec759
commit
e14cafe412
@@ -106,8 +106,8 @@ def find_hi_mmio_window(config):
|
||||
|
||||
print("", file=config)
|
||||
if is_hi_mmio:
|
||||
print("#define HI_MMIO_START\t\t0x%xUL" % mmio_min, file=config)
|
||||
print("#define HI_MMIO_END\t\t0x%xUL" % mmio_max, file=config)
|
||||
print("#define HI_MMIO_START\t\t0x%xUL" % common.round_down(mmio_min, common.SIZE_G), file=config)
|
||||
print("#define HI_MMIO_END\t\t0x%xUL" % common.round_up(mmio_max, common.SIZE_G), file=config)
|
||||
else:
|
||||
print("#define HI_MMIO_START\t\t~0UL", file=config)
|
||||
print("#define HI_MMIO_END\t\t0UL", file=config)
|
||||
|
Reference in New Issue
Block a user