From 82c643ff50dfdd82b89e9c5361fd132c79e0872c Mon Sep 17 00:00:00 2001 From: bellard Date: Wed, 14 Jul 2004 17:28:13 +0000 Subject: char device support git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1023 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/pc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hw/pc.c') diff --git a/hw/pc.c b/hw/pc.c index 11b2827921..0fd7b87b26 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -324,7 +324,7 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device, const char *initrd_filename) { char buf[1024]; - int ret, linux_boot, initrd_size, i, nb_nics1, fd; + int ret, linux_boot, initrd_size, i, nb_nics1; unsigned long bios_offset, vga_bios_offset; int bios_size, isa_bios_size; PCIBus *pci_bus; @@ -471,8 +471,7 @@ void pc_init(int ram_size, int vga_ram_size, int boot_device, pic_init(); pit = pit_init(0x40, 0); - fd = serial_open_device(); - serial_init(0x3f8, 4, fd); + serial_init(0x3f8, 4, serial_hd); if (pci_enabled) { for(i = 0; i < nb_nics; i++) { -- cgit 1.4.1