[zion] Move to using the LAPIC timer over the PIT.
This commit is contained in:
parent
f0add6e0c3
commit
d99624daf6
8 changed files with 113 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue