]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv8/cache_v8.c
armv8/cache: Fix page table creation
[karo-tx-uboot.git] / arch / arm / cpu / armv8 / cache_v8.c
index c5ec5297cd39ac4a0730724e0166406a7581f3f6..254a629a3b8cae62b53c72a71336f935d4c4251e 100644 (file)
@@ -25,9 +25,9 @@ void set_pgtable_section(u64 *page_table, u64 index, u64 section,
 /* to activate the MMU we need to set up virtual memory */
 static void mmu_setup(void)
 {
-       int i, j, el;
        bd_t *bd = gd->bd;
-       u64 *page_table = (u64 *)gd->arch.tlb_addr;
+       u64 *page_table = (u64 *)gd->arch.tlb_addr, i, j;
+       int el;
 
        /* Setup an identity-mapping for all spaces */
        for (i = 0; i < (PGTABLE_SIZE >> 3); i++) {