]> mj.ucw.cz Git - pciutils.git/commit
libpci: mmio-ports: Fix support for 64-bit non-LLP64 systems
authorPali Rohár <pali@kernel.org>
Sun, 29 Jan 2023 22:49:06 +0000 (23:49 +0100)
committerPali Rohár <pali@kernel.org>
Sun, 29 Jan 2023 22:49:06 +0000 (23:49 +0100)
commit3444b81f6b0e83eacb391e10b41f9a7b60e66f4e
tree163017329794fe9b6bee9431c325c5b56fcb7d90
parent5abf19113f5fa88817d6f6e3f190c40205c46b8d
libpci: mmio-ports: Fix support for 64-bit non-LLP64 systems

On 64-bit non-LLP64 systems is type long 64-bit. On 32-bit and 64-bit LLP64
systems is type long only 32-bit. But readl() and writel() functions works
with 32-bit PCI word. Fix it for non-LLP64 systems by using type u32.
lib/mmio-ports.c