mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
char device support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1023 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
457831f4bc
commit
82c643ff50
6 changed files with 411 additions and 79 deletions
5
hw/pc.c
5
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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue