ARM platform: Undo change to MMU page table assignment

* While the baremetal arm book I have says mrc, it breaks
  verdex and doesn't work on the Pi.
* Moving the page table address to the p15 coprocessor makes
  more logical sense anyway... i think mrc was a typo.
This commit is contained in:
Alexander von Gluck IV 2012-05-24 10:25:52 -05:00
parent 1348022133
commit b7aa0a94ff
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ mmu_set_TTBR(uint32 ttb)
{
TRACE("%s: Set Translation Table Base to 0x%" B_PRIx32 "\n", __func__, ttb);
ttb &= 0xffffc000;
asm volatile("MRC p15, 0, %[adr], c2, c0, 0"::[adr] "r" (ttb));
asm volatile("MCR p15, 0, %[adr], c2, c0, 0"::[adr] "r" (ttb));
}

View File

@ -205,7 +205,7 @@ void
mmu_set_TTBR(uint32 ttb)
{
ttb &= 0xffffc000;
asm volatile("MRC p15, 0, %[adr], c2, c0, 0"::[adr] "r" (ttb));
asm volatile("MCR p15, 0, %[adr], c2, c0, 0"::[adr] "r" (ttb));
}