Merge commit 'u-boot/master' into for-1.3.1
[oweals/u-boot.git] / cpu / bf533 / cpu.c
index ac8ec517ff63c1145b838234d379c38a8316f2e0..8118861f8d86fe4b9f0421f67ccaede04b6663ba 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * U-boot - cpu.c CPU specific functions
  *
- * Copyright (c) 2005 blackfin.uclinux.org
+ * Copyright (c) 2005-2007 Analog Devices Inc.
  *
  * (C) Copyright 2000-2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
@@ -21,8 +21,8 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+ * MA 02110-1301 USA
  */
 
 #include <common.h>
@@ -93,7 +93,7 @@ void icache_enable(void)
 
        /* Fill the rest with invalid entry */
        if (j <= 15) {
-               for (; j <= 16; j++) {
+               for (; j < 16; j++) {
                        debug("filling %i with 0", j);
                        *I1++ = 0x0;
                }
@@ -169,7 +169,7 @@ void dcache_enable(void)
 
        /* Fill the rest with invalid entry */
        if (j <= 15) {
-               for (; j <= 16; j++) {
+               for (; j < 16; j++) {
                        debug("filling %i with 0", j);
                        *I1++ = 0x0;
                }