summaryrefslogtreecommitdiff
path: root/arch/i386/kernel/timer.c
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-05-29 00:30:10 -0500
committerDanny Holman <dholman@gymli.org>2024-05-29 00:30:10 -0500
commit32441640aa2e78fd4aa8db00ec07a62c9d12f2d2 (patch)
tree92c4799926f6350480118f0a737577143d5726c9 /arch/i386/kernel/timer.c
parentffc782f8740027d21793c37c6094ebed06d1dfd2 (diff)
arch: i386: remove last refs to moved headers
Remove all the remaining references to headers that were moved into the libk. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/kernel/timer.c')
-rw-r--r--arch/i386/kernel/timer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/i386/kernel/timer.c b/arch/i386/kernel/timer.c
index e93c291..a7d88dd 100644
--- a/arch/i386/kernel/timer.c
+++ b/arch/i386/kernel/timer.c
@@ -4,11 +4,11 @@
static uint32_t num_ticks = 0;
-void timer_handler(struct regs *regs) {
+void timer_handler(struct isr_frame *frame) {
num_ticks++;
if (num_ticks == 3) {
num_ticks = 0;
- //schedule_next();
+ schedule_next();
}
}
@@ -20,9 +20,5 @@ void timer_init(void) {
outb(0x40, divisor && 0xFF00 >> 8);
enable_ints();
- //uint8_t read = 0;
- //outb(0x43, 0xE2);
- //read = inb(0x40);
-
register_irq_handler(0, timer_handler);
}