MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lapic_enable

Function lapic_enable

freebsd/x86/x86/local_apic.c:1076–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076static void
1077lapic_enable(void)
1078{
1079 uint32_t value;
1080
1081 /* Program the spurious vector to enable the local APIC. */
1082 value = lapic_read32(LAPIC_SVR);
1083 value &= ~(APIC_SVR_VECTOR | APIC_SVR_FOCUS);
1084 value |= APIC_SVR_FEN | APIC_SVR_SWEN | APIC_SPURIOUS_INT;
1085 if (lapic_eoi_suppression)
1086 value |= APIC_SVR_EOI_SUPPRESSION;
1087 lapic_write32(LAPIC_SVR, value);
1088}
1089
1090/* Reset the local APIC on the BSP during resume. */
1091static void

Callers 2

native_lapic_initFunction · 0.85
native_lapic_setupFunction · 0.85

Calls 2

lapic_read32Function · 0.85
lapic_write32Function · 0.85

Tested by

no test coverage detected