Use MSR to map framebuffer as WC (write-combining) = huge speed diff on real HW

This commit is contained in:
2026-03-19 19:34:31 +01:00
parent 6a82d581fb
commit 424b4c4632
6 changed files with 133 additions and 2 deletions
+4
View File
@@ -4,6 +4,7 @@
* @license GPL-3.0-only
*/
#include "arch/x86.h"
#include <stdbool.h>
#include <stddef.h>
#include <limine.h>
@@ -24,6 +25,7 @@
#include <config.h>
#include <io/term/flanterm.h>
#include <io/term/flanterm_backends/fb.h>
#include <arch/x86.h>
// Limine version used
__attribute__((used, section(".limine_requests")))
@@ -112,6 +114,8 @@ void kmain()
serial_init();
timer_init();
x86_arch_init();
boot_mem_display();
pmm_init(boot_ctx);