Kernel: Enable Write-Combine for FramebufferDevice

This enables much faster writing to the userspace mapped framebuffer,
if supported by the hardware.
This commit is contained in:
Tom
2022-01-25 17:42:45 -07:00
committed by Idan Horowitz
parent 6e46e21c42
commit 4383b26faa

View File

@@ -59,6 +59,8 @@ ErrorOr<Memory::Region*> FramebufferDevice::mmap(Process& process, OpenFileDescr
"Framebuffer",
prot,
shared));
if (auto result = m_userspace_framebuffer_region->set_write_combine(true); result.is_error())
dbgln("FramebufferDevice: Failed to enable Write-Combine on Framebuffer: {}", result.error());
return m_userspace_framebuffer_region;
}