4 #define TIMER_FREQ 1193182
5 #define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
10 * 0xe0..0xef are "motherboard specific", but 0xe9 is
11 * used for Bochs debugging and 0xed is the Phoenix-reserved
16 #define TEST_COUNT 0x0200
21 .type _start, @function
24 * fill up noop handlers
31 movw $noop_handler, %es:(%di)
37 movw $timer_isr, %es:(IRQ_OFFSET*4)
38 movw %cs, %es:(IRQ_OFFSET*4+2)
46 mov $(IRQ_OFFSET), %al
65 movb $(TIMER_DIV(1000) % 256), %al
67 movb $(TIMER_DIV(1000) / 256), %al
82 mov $(msg2_end-msg2), %cx
85 /* not a valid port to force exit */