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

Function lapic_timer_oneshot

freebsd/x86/x86/local_apic.c:1359–1370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1357}
1358
1359static void
1360lapic_timer_oneshot(struct lapic *la)
1361{
1362 uint32_t value;
1363
1364 value = la->lvt_timer_base;
1365 value &= ~(APIC_LVTT_TM | APIC_LVT_M);
1366 value |= APIC_LVTT_TM_ONE_SHOT;
1367 la->lvt_timer_last = value;
1368 lapic_write32(LAPIC_LVT_TIMER, value);
1369 lapic_write32(LAPIC_ICR_TIMER, la->la_timer_period);
1370}
1371
1372static void
1373lapic_timer_oneshot_nointr(struct lapic *la, uint32_t count)

Callers 2

native_lapic_setupFunction · 0.85
lapic_et_startFunction · 0.85

Calls 1

lapic_write32Function · 0.85

Tested by

no test coverage detected