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

Function Enable

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

Source from the content-addressed store, hash-verified

33 }
34
35 void Enable(){
36 WriteBase(ReadBase() | (1UL << 11));
37
38 Write(LOCAL_APIC_SIVR, Read(LOCAL_APIC_SIVR) | 0x1FF /* Enable APIC, Vector 255*/);
39 }
40
41 int Initialize(){
42 Local::base = ReadBase() & LOCAL_APIC_BASE;

Callers 3

InitializeFunction · 0.85
SMPEntryFunction · 0.85
ControllerMethod · 0.85

Calls 4

WriteBaseFunction · 0.85
ReadBaseFunction · 0.85
WriteFunction · 0.70
ReadFunction · 0.70

Tested by

no test coverage detected