]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformInitLib: dynamic mmio window size
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Oct 2022 13:47:27 +0000 (15:47 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Oct 2022 18:14:05 +0000 (18:14 +0000)
commitecb778d0ac62560aa172786ba19521f27bc3f650
tree8201bddf1ac6a14249d42afbb16845512068a9cd
parentbbda386d25e5316445a9bd67c45b47ce248eeb25
OvmfPkg/PlatformInitLib: dynamic mmio window size

In case we have a reliable PhysMemAddressWidth use that to dynamically
size the 64bit address window.  Allocate 1/8 of the physical address
space and place the window at the upper end of the address space.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
OvmfPkg/Library/PlatformInitLib/MemDetect.c