Use MSR to map framebuffer as WC (write-combining) = huge speed diff on real HW
This commit is contained in:
13
include/arch/x86.h
Normal file
13
include/arch/x86.h
Normal 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
|
||||
Reference in New Issue
Block a user