fix mmu issue

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@799 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc 2010-07-18 00:47:42 +00:00
parent 1e9996c0e5
commit d9f797aac3
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
#ifdef __GNUC__
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)
@ -177,7 +177,7 @@ void mmu_setttbase(rt_uint32_t i)
{
__asm
{
mcr p15, 0, i, c2, c2, 0
mcr p15, 0, i, c2, c0, 0
}
}