Added missing variable declarations in pc87306.c;

Both PIIX IDE bus masters now initialize with IRQ set to 14 rather than not set.
This commit is contained in:
OBattler
2016-09-22 21:33:14 +02:00
parent 6318e2bb17
commit b956c5f6f5
2 changed files with 4 additions and 1 deletions

View File

@@ -43,12 +43,14 @@ uint8_t uart_int2()
uint8_t uart1_int()
{
uint8_t temp;
temp = ((pc87306_regs[1] >> 2) & 1) ? 3 : 4; /* 0 = IRQ 4, 1 = IRQ 3 */
return (pc87306_regs[0x1C] & 1) ? uart_int1() : temp;
}
uint8_t uart2_int()
{
uint8_t temp;
temp = ((pc87306_regs[1] >> 4) & 1) ? 3 : 4; /* 0 = IRQ 4, 1 = IRQ 3 */
return (pc87306_regs[0x1C] & 1) ? uart_int2() : temp;
}