Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LemonOSProject/LemonOS
/ WriteBase
Function
WriteBase
Kernel/src/arch/x86_64/apic.cpp:29–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
void WriteBase(uint64_t val){
30
uint64_t low = val & 0xFFFFFFFF;
31
uint64_t high = val >> 32;
32
asm(
"rdmsr"
::
"a"
(low),
"d"
(high),
"c"
(0x1B));
33
}
34
35
void Enable(){
36
WriteBase(ReadBase() | (1UL << 11));
Callers
1
Enable
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected