IDE,X86: Fix IDE controller BAR configuration for x86.

This commit is contained in:
Gabe Black 2010-11-22 02:33:47 -05:00
parent 4d9ff1954b
commit 6a00519e73

View file

@ -107,11 +107,11 @@ IdeController::IdeController(Params *p)
primary.select(false);
secondary.select(false);
if ((BARAddrs[0] & ~BAR_IO_MASK) != 0){
if ((BARAddrs[0] & ~BAR_IO_MASK) && !legacyIO[0]){
primary.cmdAddr = BARAddrs[0]; primary.cmdSize = BARSize[0];
primary.ctrlAddr = BARAddrs[1]; primary.ctrlSize = BARAddrs[1];
}
if ((BARAddrs[2] & ~BAR_IO_MASK) != 0){
if ((BARAddrs[2] & ~BAR_IO_MASK) && !legacyIO[2]){
secondary.cmdAddr = BARAddrs[2]; secondary.cmdSize = BARSize[2];
secondary.ctrlAddr = BARAddrs[3]; secondary.ctrlSize = BARAddrs[3];
}