diff options
Diffstat (limited to 'dev/ide_ctrl.cc')
-rw-r--r-- | dev/ide_ctrl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/ide_ctrl.cc b/dev/ide_ctrl.cc index a21cf12d7..f78a8e1ef 100644 --- a/dev/ide_ctrl.cc +++ b/dev/ide_ctrl.cc @@ -357,7 +357,7 @@ IdeController::WriteConfig(int offset, int size, uint32_t data) pioInterface->addAddrRange(pri_cmd_addr, pri_cmd_addr + pri_cmd_size - 1); - pri_cmd_addr = ((pri_cmd_addr | 0xf0000000000ULL) & PA_IMPL_MASK); + pri_cmd_addr = pri_cmd_addr & PA_UNCACHED_MASK; break; case PCI0_BASE_ADDR1: @@ -366,7 +366,7 @@ IdeController::WriteConfig(int offset, int size, uint32_t data) pioInterface->addAddrRange(pri_ctrl_addr, pri_ctrl_addr + pri_ctrl_size - 1); - pri_ctrl_addr = ((pri_ctrl_addr | 0xf0000000000ULL) & PA_IMPL_MASK); + pri_ctrl_addr = pri_ctrl_addr & PA_UNCACHED_MASK; break; case PCI0_BASE_ADDR2: @@ -375,7 +375,7 @@ IdeController::WriteConfig(int offset, int size, uint32_t data) pioInterface->addAddrRange(sec_cmd_addr, sec_cmd_addr + sec_cmd_size - 1); - sec_cmd_addr = ((sec_cmd_addr | 0xf0000000000ULL) & PA_IMPL_MASK); + sec_cmd_addr = sec_cmd_addr & PA_UNCACHED_MASK; break; case PCI0_BASE_ADDR3: @@ -384,7 +384,7 @@ IdeController::WriteConfig(int offset, int size, uint32_t data) pioInterface->addAddrRange(sec_ctrl_addr, sec_ctrl_addr + sec_ctrl_size - 1); - sec_ctrl_addr = ((sec_ctrl_addr | 0xf0000000000ULL) & PA_IMPL_MASK); + sec_ctrl_addr = sec_ctrl_addr & PA_UNCACHED_MASK; break; case PCI0_BASE_ADDR4: @@ -392,7 +392,7 @@ IdeController::WriteConfig(int offset, int size, uint32_t data) if (pioInterface) pioInterface->addAddrRange(bmi_addr, bmi_addr + bmi_size - 1); - bmi_addr = ((bmi_addr | 0xf0000000000ULL) & PA_IMPL_MASK); + bmi_addr = bmi_addr & PA_UNCACHED_MASK; break; } } |