while (inb(0x64) & 0x1)
inb(0x60);
outb(0x60, 0xee); /* Cause an IRQ. */
- while (!(inb(0x64) & 0x1))
+ while (inb(0x60) != 0xEE)
;
- while (inb(0x64) & 0x1)
- inb(0x60);
}
void pci_dump() {
{
b = kbd_get_injected_scancode();
lastctr = counter;
- inb(0x60);
+ while (inb(0x64) & 0x1)
+ inb(0x60);
} else
b = inb(0x60);
if ((curdev == 0) && (b == 0x01)) { /* Escape */
// if ((c++) % 2)
// return;
+
+ if (((base + 80*25*2)%0x8000) < base)
+ {
+ if ((pos > ((base + 80*25*2)%0x8000)) && (pos < base))
+ pos = base;
+ } else if ((pos > base + 80*25*2) || (pos < base))
+ pos = base;
test[0] = pos >> 8;
test[1] = pos & 0xFF;