From: Ben Pfaff Date: Mon, 20 Sep 2004 04:37:43 +0000 (+0000) Subject: Enable ata1 under Bochs if hdc or hdd is needed. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d11a8c92f3107d4f61727130f4412608bad81854;p=pintos-anon Enable ata1 under Bochs if hdc or hdd is needed. --- diff --git a/src/utils/pintos b/src/utils/pintos index 9206629..a2168d2 100755 --- a/src/utils/pintos +++ b/src/utils/pintos @@ -164,6 +164,8 @@ sub run_vm { print BOCHSRC "vgaromimage: $vgaromimage\n"; print BOCHSRC bochs_disk_line ("ata0-master", $disks[0]); print BOCHSRC bochs_disk_line ("ata0-slave", $disks[1]); + print BOCHSRC "ata1: enabled=1, ioaddr1=0x170, ioaddr2=0x370, irq=15\n" + if defined ($disks[2]) || defined ($disks[3]); print BOCHSRC bochs_disk_line ("ata1-master", $disks[2]); print BOCHSRC bochs_disk_line ("ata1-slave", $disks[3]); print BOCHSRC "boot: c\n";