Changeset e8a0b90 in mainline for kernel/arch/ia32/src/drivers/i8259.c
- Timestamp:
- 2007-05-31T21:21:02Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d8431986
- Parents:
- 67f5fbd9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/drivers/i8259.c
r67f5fbd9 re8a0b90 96 96 if (irqmask & 0xff) { 97 97 x = inb(PIC_PIC0PORT2); 98 outb(PIC_PIC0PORT2, x & (~(irqmask & 0xff)));98 outb(PIC_PIC0PORT2, (uint8_t) (x & (~(irqmask & 0xff)))); 99 99 } 100 100 if (irqmask >> 8) { 101 101 x = inb(PIC_PIC1PORT2); 102 outb(PIC_PIC1PORT2, x & (~(irqmask >> 8)));102 outb(PIC_PIC1PORT2, (uint8_t) (x & (~(irqmask >> 8)))); 103 103 } 104 104 } … … 110 110 if (irqmask & 0xff) { 111 111 x = inb(PIC_PIC0PORT2); 112 outb(PIC_PIC0PORT2, x | (irqmask & 0xff));112 outb(PIC_PIC0PORT2, (uint8_t) (x | (irqmask & 0xff))); 113 113 } 114 114 if (irqmask >> 8) { 115 115 x = inb(PIC_PIC1PORT2); 116 outb(PIC_PIC1PORT2, x | (irqmask >> 8));116 outb(PIC_PIC1PORT2, (uint8_t) (x | (irqmask >> 8))); 117 117 } 118 118 } … … 124 124 } 125 125 126 void pic_spurious(int n , istate_t *istate)126 void pic_spurious(int n __attribute__((unused)), istate_t *istate __attribute__((unused))) 127 127 { 128 128 #ifdef CONFIG_DEBUG 129 printf("cpu% d: PIC spurious interrupt\n", CPU->id);129 printf("cpu%u: PIC spurious interrupt\n", CPU->id); 130 130 #endif 131 131 }
Note:
See TracChangeset
for help on using the changeset viewer.