Set the cacheline size before calling powerpc_init()
powerpc_init() initializes the mmu. Since this may clear pages via pmap_zero_page(), set the cacheline size before calling into it, so pmap_zero_page() has the right cacheline size. This isn't completely necessary now, but will be when 64-bit book-e is completed.
This commit is contained in:
parent
99982ba080
commit
afd51eac6c
@ -316,8 +316,6 @@ booke_init(uint32_t arg1, uint32_t arg2)
|
||||
else /* U-Boot */
|
||||
mdp = NULL;
|
||||
|
||||
ret = powerpc_init(dtbp, 0, 0, mdp);
|
||||
|
||||
/* Default to 32 byte cache line size. */
|
||||
switch ((mfpvr()) >> 16) {
|
||||
case FSL_E500mc:
|
||||
@ -327,6 +325,8 @@ booke_init(uint32_t arg1, uint32_t arg2)
|
||||
break;
|
||||
}
|
||||
|
||||
ret = powerpc_init(dtbp, 0, 0, mdp);
|
||||
|
||||
/* Enable caches */
|
||||
booke_enable_l1_cache();
|
||||
booke_enable_l2_cache();
|
||||
|
Loading…
x
Reference in New Issue
Block a user