From 65ab83b42b3a5cffcee4947f5783cd4625842efa Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 1 Mar 2025 23:31:31 +0000 Subject: [PATCH] fix(kernel/pci): map BAR address using PWT and PCD flags Signed-off-by: EnderIce2 --- Kernel/core/pci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/core/pci.cpp b/Kernel/core/pci.cpp index bb8c1be3..d8e9b3c3 100644 --- a/Kernel/core/pci.cpp +++ b/Kernel/core/pci.cpp @@ -947,7 +947,7 @@ namespace PCI if (BARSize > 0) Memory::Virtual(Table).Map((void *)BARBase, (void *)BARBase, - BARSize, Memory::RW | Memory::PWT); + BARSize, Memory::RW | Memory::PWT | Memory::PCD); } else if ((BAR[i] & 1) == 1) /* I/O Base */ { @@ -959,7 +959,7 @@ namespace PCI if (BARSize > 0) Memory::Virtual(Table).Map((void *)BARBase, (void *)BARBase, - BARSize, Memory::RW | Memory::PWT); + BARSize, Memory::RW | Memory::PWT | Memory::PCD); } } break;