]> git.sur5r.net Git - u-boot/blobdiff - cpu/ppc4xx/kgdb.S
Sync'd u-boot-net with mainline
[u-boot] / cpu / ppc4xx / kgdb.S
index 78681cd1d29f4f2c4b346c57540e591d181736c6..8c4bbf2e4de35dd908e8c1b5bd94ac281005e2cf 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/cache.h>
 #include <asm/mmu.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
+#if defined(CONFIG_CMD_KGDB)
  /*
  * cache flushing routines for kgdb
  */
@@ -45,13 +45,13 @@ kgdb_flush_cache_all:
        iccci   r0,r0           /* iccci invalidates the entire I cache */
        /* dcache */
        addi    r6,0,0x0000     /* clear GPR 6 */
-        addi    r7,r0, 128     /* do loop for # of dcache lines */
+       addi    r7,r0, 128      /* do loop for # of dcache lines */
                                /* NOTE: dccci invalidates both */
-        mtctr   r7              /* ways in the D cache */
+       mtctr   r7              /* ways in the D cache */
 ..dcloop:
-        dccci   0,r6            /* invalidate line */
-        addi    r6,r6, 32      /* bump to next line */
-        bdnz    ..dcloop
+       dccci   0,r6            /* invalidate line */
+       addi    r6,r6, 32       /* bump to next line */
+       bdnz    ..dcloop
        blr
 
        .globl  kgdb_flush_cache_range
@@ -75,4 +75,4 @@ kgdb_flush_cache_range:
        SYNC
        blr
 
-#endif /* CFG_CMD_KGDB */
+#endif