u-boot-brain/arch/arm/cpu/armv8
Thierry Reding 8b19dff579 armv8/cache: Fix page table creation
While generating the page tables, a running integer index is shifted by
SECTION_SHIFT (29) and causes overflow for any integer bigger than 7.
The page tables therefore alias to the same 8 sections and cause U-Boot
to hang once the MMU is enabled.

Fix this by making the index a 64-bit unsigned integer and so avoid the
overflow.

swarren notes: currently "i" ranges from 0..8191 on all ARM64 boards, and
"j" varies depending on RAM size; from 4 to 11 for a board with 4GB at
physical address 2GB, as some Tegra boards have.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2015-07-28 10:30:17 -07:00
..
fsl-lsch3 armv8/fsl-lsch3: Fix TCR_EL3 for the final MMU setup. 2015-07-20 11:44:40 -07:00
zynqmp zynqmp: Add support for emulation platform - Veloce 2015-04-29 11:19:03 +02:00
cache_v8.c armv8/cache: Fix page table creation 2015-07-28 10:30:17 -07:00
cache.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
config.mk ARM: move -march=* and -mtune= options to arch/arm/Makefile 2015-03-27 16:55:22 +01:00
cpu.c arm64: core support 2014-01-09 16:08:44 +01:00
exceptions.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
generic_timer.c armv8/fsl-lsch3: Implement workaround for erratum A008585 2015-04-23 08:55:54 -07:00
Kconfig armv8/vexpress64: make multientry conditional 2015-03-09 11:13:29 -04:00
Makefile arm64: Add Xilinx ZynqMP support 2015-03-02 18:41:54 +01:00
start.S arm/errata: Update required bits for A57 cores erratas 2015-07-20 11:44:35 -07:00
tlb.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
transition.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
u-boot-spl.lds armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
u-boot.lds arm64: core support 2014-01-09 16:08:44 +01:00