added helper functions to mem_map to convert physical addresses to virtual addresses

This commit is contained in:
bunnei 2014-04-27 12:40:31 -04:00
parent f0525a1eb4
commit b2a6ad52f4
2 changed files with 15 additions and 1 deletions

View file

@ -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