test/pit: Fill up IDT with noop handler

To cover all IRQs.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:39 +01:00
committed by Will Deacon
parent 01c07d21e4
commit 3ed8a92048
+17 -2
View File
@@ -16,9 +16,20 @@ _start:
mov $(msg1_end-msg1), %cx
cs rep/outsb
set_idt:
xor %ax, %ax
/*
* fill up noop handlers
*/
xorw %ax, %ax
xorw %di, %di
movw %ax, %es
movw $256, %cx
fill_noop_idt:
movw $noop_handler, %es:(%di)
movw %cs, %es:2(%di)
add $4, %di
loop fill_noop_idt
set_idt:
movw $timer_isr, %es:(IRQ_OFFSET*4)
movw %cs, %es:(IRQ_OFFSET*4+2)
@@ -86,6 +97,10 @@ timer_isr:
popfw
popaw
iretw
noop_handler:
iretw
count:
.word TEST_COUNT
msg1: