mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
serial-isa: Use MAX_ISA_SERIAL_PORTS instead of MAX_SERIAL_PORTS
The ISA serial port handling in serial-isa.c imposes a limit of 4 serial ports. This is because we only know of 4 IO port and IRQ settings for them, and is unrelated to the generic MAX_SERIAL_PORTS limit, though they happen to both be set at 4 currently. Use a new MAX_ISA_SERIAL_PORTS wherever that is the correct limit to be checking against. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180420145249.32435-11-peter.maydell@linaro.org
This commit is contained in:
parent
97274d0c05
commit
def337ffda
6 changed files with 12 additions and 9 deletions
|
@ -298,7 +298,7 @@ static void ebus_realize(PCIDevice *pci_dev, Error **errp)
|
|||
0, NULL, 115200, serial_hd(i), DEVICE_BIG_ENDIAN);
|
||||
i++;
|
||||
}
|
||||
serial_hds_isa_init(s->isa_bus, i, MAX_SERIAL_PORTS);
|
||||
serial_hds_isa_init(s->isa_bus, i, MAX_ISA_SERIAL_PORTS);
|
||||
|
||||
/* Parallel ports */
|
||||
parallel_hds_isa_init(s->isa_bus, MAX_PARALLEL_PORTS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue