]> xenbits.xensource.com Git - xen.git/commit
hvmloader: tidy pci_mem_{start,end}
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Dec 2021 07:56:34 +0000 (08:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Dec 2021 07:56:34 +0000 (08:56 +0100)
commit1c4589280ae4e9ba34266e674459fffd6f0282dc
treef0adce7fd8eb7e221357f37dc556ba2c25d78e1d
parentea187c0b7a73c26258c0e91e4f3656989804555f
hvmloader: tidy pci_mem_{start,end}

For one at least pci_mem_start has to be precisely 32 bits wide, so use
uint32_t for both. Otherwise expressions like "pci_mem_start <<= 1"
won't have the intended effect (in their context).

Further since its introduction pci_mem_end was never written to. Mark it
const to make this explicit.

Finally drop PCI_MEM_END: It is used just once and needlessly
disconnected from the other constant (RESERVED_MEMBASE) it needs to
match. Use RESERVED_MEMBASE as initializer of pci_mem_end instead.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/hvmloader/config.h
tools/firmware/hvmloader/pci.c