mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
ppc4xx: Fix TLB reset problem with recent 44x images
Patch d873133f
[ppc4xx: Add Sequoia RAM-booting target] broke "normal"
booting on some 44x platforms. This breakage is only noticed in some
cases while powercycling. As it seems, the code in question in start.S
didn't invalidate TLB #0. This makes sense since this TLB is used for
the bootrom mapping. With the patch mentioned above even TLB #0 got
invalidated resulting in an error later on.
This patch now fixes this issue by only invalidating TLB #0 in the RAM-
booting case.
Tested succesfully on Sequoia and Canyonlands.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Dirk Eibach <Eibach@gdsys.de>
This commit is contained in:
parent
28958b8bea
commit
0a371ca089
1 changed files with 7 additions and 2 deletions
|
@ -450,9 +450,14 @@ skip_debug_init:
|
|||
/* Clear all TLB entries -- TID = 0, TS = 0 */
|
||||
/*----------------------------------------------------------------*/
|
||||
addis r0,0,0x0000
|
||||
li r1,0x003f /* 64 TLB entries */
|
||||
mtctr r1
|
||||
#ifdef CONFIG_SYS_RAMBOOT
|
||||
li r4,0 /* Start with TLB #0 */
|
||||
#else
|
||||
li r4,1 /* Start with TLB #1 */
|
||||
#endif
|
||||
li r1,64 /* 64 TLB entries */
|
||||
sub r1,r1,r4 /* calculate last TLB # */
|
||||
mtctr r1
|
||||
rsttlb:
|
||||
#ifdef CONFIG_SYS_RAMBOOT
|
||||
tlbre r3,r4,0 /* Read contents from TLB word #0 to get EPN */
|
||||
|
|
Loading…
Add table
Reference in a new issue