diff options
author | Ian Moffett <ian@osmora.org> | 2023-12-25 14:57:12 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2023-12-25 14:57:12 -0500 |
commit | 6f5aba866f01f5690438309629e96812fc099414 (patch) | |
tree | 9cfd2a927d2ce676c65fca4dd12f902700cb2817 /sys/include/arch/amd64/lapic.h | |
parent | 8e559cbb41d696eb119c5daccd33670ebb5207c3 (diff) |
kernel/amd64: lapic: Add initial LAPIC Timer logic
The commit adds the initial Local APIC timer support in Hyra... However,
the interrupt service routine is a stub and needs to be completed.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/arch/amd64/lapic.h')
-rw-r--r-- | sys/include/arch/amd64/lapic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/lapic.h b/sys/include/arch/amd64/lapic.h index 1e7caf6..1ef41fb 100644 --- a/sys/include/arch/amd64/lapic.h +++ b/sys/include/arch/amd64/lapic.h @@ -36,6 +36,8 @@ #define LAPIC_TMR_PERIODIC 0x01 void lapic_timer_init(size_t *freq_out); +void lapic_timer_oneshot(bool mask, uint32_t count); +void lapic_timer_oneshot_us(uint32_t us); void lapic_init(void); #endif /* !_AMD64_LAPIC_H_ */ |