| 1357 | } |
| 1358 | |
| 1359 | static void |
| 1360 | lapic_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 | |
| 1372 | static void |
| 1373 | lapic_timer_oneshot_nointr(struct lapic *la, uint32_t count) |
no test coverage detected