[zion] Move to using the LAPIC timer over the PIT.

This commit is contained in:
Drew Galbraith 2023-08-01 20:18:47 -07:00
parent f0add6e0c3
commit d99624daf6
8 changed files with 113 additions and 3 deletions

View file

@ -1,7 +1,18 @@
#pragma once
#include <stdint.h>
void InspectApic();
void EnableApic();
#define LAPIC_TIMER_ONESHOT 0
#define LAPIC_TIMER_PERIODIC 1 << 17
void SetLocalTimer(uint32_t init_cnt, uint64_t mode);
uint32_t GetLocalTimer();
void UnmaskPit();
void MaskPit();
void SignalEOI();