mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
hv: pci: use ECAM to access PCIe Configuration Space
Use Enhanced Configuration Access Mechanism (MMIO) instead of PCI-compatible Configuration Mechanism (IO port) to access PCIe Configuration Space PCI-compatible Configuration Mechanism (IO port) access is used for UART in debug version. Tracked-On: #3475 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -165,6 +165,8 @@ void init_pcpu_pre(bool is_bsp)
|
||||
panic("Platform CAT info is incorrect!");
|
||||
}
|
||||
|
||||
/* NOTE: this must call after MMCONFIG is parsed in init_vboot and before APs are INIT. */
|
||||
pci_switch_to_mmio_cfg_ops();
|
||||
} else {
|
||||
/* Switch this CPU to use the same page tables set-up by the
|
||||
* primary/boot CPU
|
||||
|
||||
Reference in New Issue
Block a user