fix mmu issue
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@799 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
1e9996c0e5
commit
d9f797aac3
|
@ -44,7 +44,7 @@
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
void mmu_setttbase(register rt_uint32_t i)
|
void mmu_setttbase(register rt_uint32_t i)
|
||||||
{
|
{
|
||||||
asm ("mcr p15, 0, %0, c2, c2, 0": :"r" (i));
|
asm ("mcr p15, 0, %0, c2, c0, 0": :"r" (i));
|
||||||
}
|
}
|
||||||
|
|
||||||
void mmu_set_domain(register rt_uint32_t i)
|
void mmu_set_domain(register rt_uint32_t i)
|
||||||
|
@ -177,7 +177,7 @@ void mmu_setttbase(rt_uint32_t i)
|
||||||
{
|
{
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
mcr p15, 0, i, c2, c2, 0
|
mcr p15, 0, i, c2, c0, 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue