MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ReadBase

Function ReadBase

Kernel/src/arch/x86_64/apic.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 uint64_t ReadBase(){
22 uint64_t low;
23 uint64_t high;
24 asm("rdmsr" : "=a"(low), "=d"(high) : "c"(0x1B));
25
26 return (high << 32) | low;
27 }
28
29 void WriteBase(uint64_t val){
30 uint64_t low = val & 0xFFFFFFFF;

Callers 2

EnableFunction · 0.85
InitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected