- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- inb $0x84,%al
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
-#ifdef notyet
- .globl _iml8 # mask off all but irq0-1
-_iml8:
- cli # disable interrupts
- movw $0xfffc,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml10 # mask off all but irq0-1,8-9
-_iml10:
- cli # disable interrupts
- movw $0xfcf8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml11 # mask off all but irq0-1,8-10
-_iml11:
- cli # disable interrupts
- movw $0xf8f8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml12 # mask off all but irq0-1,8-11
-_iml12:
- cli # disable interrupts
- movw $0xf0f8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml13 # mask off all but irq0-1,8-12
-_iml13:
- cli # disable interrupts
- movw $0xe0f8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml15 # mask off all but irq0-1,8-14
-_iml15:
- cli # disable interrupts
- movw $0x80f8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml3 # mask off all but irq0-1,8-15
-_iml3:
- cli # disable interrupts
- movw $0x00f8,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP
- outb %al,$ IO_ICU1+1 /* update icu's */
- NOP
- movb %ah,%al
- NOP
- outb %al,$ IO_ICU2+1
- NOP
- movzwl _cpl,%eax # return old priority
- movw %dx,_cpl # set new priority level
- sti # enable interrupts
- ret
-
- .globl _iml4 # mask off all but irq0-1,8-15,3
-_iml4:
- cli # disable interrupts
- movw $0x00f0,%ax # set new priority level
- movw %ax,%dx
- orw _imen,%ax # mask off those not enabled yet
- movw %ax,%cx
- NOP