]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/mpc85xx: fix TLB alignment
authorScott Wood <scottwood@freescale.com>
Thu, 20 Sep 2012 23:34:49 +0000 (18:34 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 26 Nov 2012 21:41:22 +0000 (15:41 -0600)
commit7f0a22ff25f3b63d259e27a3702a5d10254e7165
tree0bf7c2677ca24c6dc31d4488f4349805da1998f2
parent6ec63f411e47847484b60a8b451e528d613c9dd9
powerpc/mpc85xx: fix TLB alignment

In the RAMBOOT/SPL case we were creating a TLB entry starting at
CONFIG_SYS_MONITOR_BASE, and just hoping that the base was properly
aligned for the TLB entry size.  This turned out to not be the case
with NAND SPL because the main U-Boot starts at an offset into the image
in order to skip the SPL itself.

Fix the TLB entry to always start at a proper alignment.  We still assume that
CONFIG_SYS_MONITOR_BASE doesn't start immediately before a large-page boundary
thus requiring multiple TLB entries.

Signed-off-by: Scott Wood <scottwood@frescale.com>
Cc: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc85xx/start.S