summaryrefslogtreecommitdiff
path: root/kern/timer_asm.S
blob: f70c60654ee33406a6744805fd980f2c3a611891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <x86/seg.h>
#include <x86/interrupt_defines.h>
#include <x86/timer_defines.h>

.text

.global timer_test_handler
.type timer_test_handler, %function
timer_test_handler:
    push %eax
    mov timer_count, %eax
    dec %eax
    mov %eax, timer_count
    mov $INT_ACK_CURRENT, %al
    mov $INT_CTL_PORT, %dx
    outb %al, %dx
    pop %eax
    iret