]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mips/cache.S
* Patch by Arun Dharankar, 4 Apr 2003:
[karo-tx-uboot.git] / cpu / mips / cache.S
index aeb04b3790c30e478fddaed0b67a7ff8dfdc7cab..2715b9b025c06d0802b51dbb14ca820837d48498 100644 (file)
@@ -253,9 +253,9 @@ dcache_disable:
        .globl  mips_cache_lock
        .ent    mips_cache_lock
 mips_cache_lock:
-       li      a1, K0BASE - CFG_DCACHE_SIZE
+       li      a1, K0BASE - CFG_DCACHE_SIZE/2
        addu    a0, a1
-       li      a2, CFG_DCACHE_SIZE
+       li      a2, CFG_DCACHE_SIZE/2
        li      a3, CFG_CACHELINE_SIZE
        move    a1, a2
        icacheop(a0,a1,a2,a3,0x1d)