mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-03 20:21:27 +00:00
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:
committed by
Will Deacon
parent
01c07d21e4
commit
3ed8a92048
+17
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user