]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
drivers/ukbus/platform: Add uk_bus_pf_devmap
authorMichalis Pappas <michalis@unikraft.io>
Wed, 20 Sep 2023 11:18:33 +0000 (13:18 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
commitc283e092d940f3deda82b71260ef92eeb8bbbecf
tree8dbf2694e951958d5ea1cfd10ede54811fa92a7d
parentb077756ea6466ee658edae2dc6c7d3fa54b99297
drivers/ukbus/platform: Add uk_bus_pf_devmap

Add `uk_bus_pf_devmap()` for mapping device regions. Because of the
current boot flow that initializes the vmmap API after the probing
the interrupt controller - which is required for bringing up secondary
cores - it is not possible to use uk_vma_map_dma() here, so we need to
resort to the low level paging API and map devices 1:1.

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Rares Miculescu <miculescur@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1116
drivers/ukbus/platform/exportsyms.uk
drivers/ukbus/platform/include/uk/bus/platform.h
drivers/ukbus/platform/platform_bus.c