From 80aa771dbc1a779b5c6fc7341e9b52f968cb7123 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 2 Aug 2009 18:01:09 -0700 Subject: IDE: Configure the IDE control to reflect the initial value of the command register. --- src/dev/ide_ctrl.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dev') diff --git a/src/dev/ide_ctrl.cc b/src/dev/ide_ctrl.cc index 3d4e71888..a8cceda1f 100644 --- a/src/dev/ide_ctrl.cc +++ b/src/dev/ide_ctrl.cc @@ -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 -- cgit v1.2.3