diff options
author | Danny Holman <dholman@gymli.org> | 2024-02-16 12:43:03 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-02-16 12:43:03 -0600 |
commit | d0eef864dad134c482f853df5ef70caf522d3e9e (patch) | |
tree | d74c56d15463c56ec9670ca7f604805f92487f58 /arch/i386/include/kernel | |
parent | 5c8265d9634836217f1a814ee2b56942e06259a4 (diff) |
arch: i386: add operations to control PIT timer
Add a set of functions that control the programmable interrupt timer.
This will be used as the primary means of preemption on this
architecture.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/include/kernel')
-rw-r--r-- | arch/i386/include/kernel/timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/timer.h b/arch/i386/include/kernel/timer.h new file mode 100644 index 0000000..0d90369 --- /dev/null +++ b/arch/i386/include/kernel/timer.h @@ -0,0 +1,9 @@ +#ifndef I386_TIMER_H +#define I386_TIMER_H + +#include <kernel/isr.h> + +void timer_handler(struct isr_frame *frame); +void timer_init(void); + +#endif |