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:
parent
1348022133
commit
b7aa0a94ff
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user