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

13
include/arch/x86.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef X86_H
#define X86_H
#include <stdbool.h>
#include <stdint.h>
uint64_t rdmsr(uint32_t msr);
void cpuid(uint32_t leaf, uint32_t* eax, uint32_t* ebx, uint32_t* ecx, uint32_t* edx);
void wrmsr(uint32_t msr, uint64_t value);
bool x86_has_msr();
void x86_arch_init();
#endif