From ee1521b9576b391d899027027345137fab2ebb6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 22 Feb 2018 22:42:06 +0100 Subject: [PATCH] pci: map msix maps for the kernel only. --- src/add-ons/kernel/bus_managers/pci/arch/x86/pci_msi.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_msi.cpp b/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_msi.cpp index 53dac72954..8a1f3f2b8c 100644 --- a/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_msi.cpp +++ b/src/add-ons/kernel/bus_managers/pci/arch/x86/pci_msi.cpp @@ -364,7 +364,8 @@ pci_configure_msix(uint8 virtualBus, uint8 _device, uint8 function, area_id area = map_physical_memory("msi table map", device->info.u.h0.base_registers[info->table_bar], tableSize + info->table_offset, - B_ANY_KERNEL_ADDRESS, B_READ_AREA | B_WRITE_AREA, (void**)&address); + B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, + (void**)&address); if (area < 0) return area; info->table_area_id = area; @@ -375,7 +376,7 @@ pci_configure_msix(uint8 virtualBus, uint8 _device, uint8 function, area = map_physical_memory("msi pba map", device->info.u.h0.base_registers[info->pba_bar], tableSize + info->pba_offset, - B_ANY_KERNEL_ADDRESS, B_READ_AREA | B_WRITE_AREA, + B_ANY_KERNEL_ADDRESS, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, (void**)&address); if (area < 0) { delete_area(info->table_area_id);