mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
pci: fix compiler warning
This commit is contained in:
parent
e9652d765d
commit
97889935cf
@ -211,8 +211,9 @@ class Pci::Device_component : public Genode::Rpc_object<Pci::Device>,
|
||||
Pci::Device::ACCESS_32BIT);
|
||||
|
||||
if (msi & CAP_MSI_64) {
|
||||
Genode::uint32_t upper_address = sizeof(msi_address) > 4 ?
|
||||
msi_address >> 32 : 0UL;
|
||||
Genode::uint32_t upper_address = sizeof(msi_address) > 4
|
||||
? (Genode::uint64_t)msi_address >> 32
|
||||
: 0UL;
|
||||
|
||||
_device_config.write(&_config_access, msi_cap + 0x8,
|
||||
upper_address,
|
||||
|
Loading…
Reference in New Issue
Block a user