| 563 | } |
| 564 | |
| 565 | uintptr_t GetIOMapping(uintptr_t addr){ |
| 566 | if(addr > 0xffffffff){ // Typically most MMIO will not reside > 4GB, but check just in case |
| 567 | Log::Error("MMIO >4GB current unsupported"); |
| 568 | return 0xffffffff; |
| 569 | } |
| 570 | |
| 571 | return addr + IO_VIRTUAL_BASE; |
| 572 | } |
| 573 | |
| 574 | void ChangeAddressSpace(address_space_t* addressSpace){ |
| 575 | currentAddressSpace = addressSpace; |
no test coverage detected