added helper functions to mem_map to convert physical addresses to virtual addresses
This commit is contained in:
parent
f0525a1eb4
commit
b2a6ad52f4
2 changed files with 15 additions and 1 deletions
|
@ -22,7 +22,7 @@ u32 _AddressPhysicalToVirtual(const u32 addr) {
|
|||
// to virtual address translations here. This is obviously quite hacky... But we're not doing
|
||||
// any MMU emulation yet or anything
|
||||
if ((addr >= FCRAM_PADDR) && (addr < FCRAM_PADDR_END)) {
|
||||
return (addr & FCRAM_MASK) | FCRAM_VADDR;
|
||||
return VirtualAddressFromPhysical_FCRAM(addr);
|
||||
|
||||
// Hardware IO
|
||||
// TODO(bunnei): FixMe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue