Quick-kill the MMIO handler if the fault address is above the mapping range.

This commit is contained in:
Dr. Chat
2015-09-07 21:23:24 -05:00
parent 3ac83b16c8
commit a2bc0443f2
3 changed files with 11 additions and 6 deletions

View File

@@ -184,8 +184,8 @@ int Memory::Initialize() {
kMemoryProtectRead | kMemoryProtectWrite);
// Add handlers for MMIO.
mmio_handler_ =
cpu::MMIOHandler::Install(virtual_membase_, physical_membase_);
mmio_handler_ = cpu::MMIOHandler::Install(virtual_membase_, physical_membase_,
physical_membase_ + 0x1FFFFFFF);
if (!mmio_handler_) {
XELOGE("Unable to install MMIO handlers");
assert_always();