]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/lib/board.c
arm: Keep track of the tlb size as well as its location
[people/ms/u-boot.git] / arch / arm / lib / board.c
index 0459d0ce9fa06336d0c7721f8699d69c5fb81814..c214bba881a3cf1db70906acf61d62f416d9c8ae 100644 (file)
@@ -348,13 +348,14 @@ void board_init_f(ulong bootflag)
 
 #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
        /* reserve TLB table */
-       addr -= (4096 * 4);
+       gd->tlb_size = 4096 * 4;
+       addr -= gd->tlb_size;
 
        /* round down to next 64 kB limit */
        addr &= ~(0x10000 - 1);
 
        gd->tlb_addr = addr;
-       debug("TLB table at: %08lx\n", addr);
+       debug("TLB table from %08lx to %08lx\n", addr, addr + gd->tlb_size);
 #endif
 
        /* round down to next 4 kB limit */