Browse Source

fix mmu issue

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@799 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 15 years ago
parent
commit
d9f797aac3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libcpu/arm/s3c24x0/mmu.c

+ 2 - 2
libcpu/arm/s3c24x0/mmu.c

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