HomeFreeBSD

simplebus: Map SYS_RES_IOPORT to SYS_RES_MEMORY later in alloc_resource

Description

simplebus: Map SYS_RES_IOPORT to SYS_RES_MEMORY later in alloc_resource

Specifically, the set/get_resource methods do not currently remap
resource types, so remap the type in alloc_resource only after
looking for a matching resource list entry.

Fixes: 3cf553288b96 simplebus: Consistently map SYS_RES_IOPORT to SYS_RES_MEMORY
(cherry picked from commit 4505c89242025f840023cdf092fdab845586f42d)

Details

Provenance
jhbAuthored on Feb 16 2024, 12:04 AM
Parents
rG555691ca601d: pci_pci: Remove obsolete comment
Branches
Unknown
Tags
Unknown