IDE: Configure the IDE control to reflect the initial value of the command register.
authorGabe Black <gblack@eecs.umich.edu>
Mon, 3 Aug 2009 01:01:09 +0000 (18:01 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Mon, 3 Aug 2009 01:01:09 +0000 (18:01 -0700)
src/dev/ide_ctrl.cc

index 3d4e71888ac5171c117ccaf41006c35ed7c49aa3..a8cceda1f47fadddd3eea9d1a4b6355235c3fffc 100644 (file)
@@ -107,6 +107,9 @@ IdeController::IdeController(Params *p)
     }
     primary.select(false);
     secondary.select(false);
+
+    ioEnabled = (config.command & htole(PCI_CMD_IOSE));
+    bmEnabled = (config.command & htole(PCI_CMD_BME));
 }
 
 bool