diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2014-09-19 04:36:09 -0400 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-11-07 19:10:44 -0500 |
commit | c9a803fb17bcec0e7527dc8fa055e56a9691abbb (patch) | |
tree | aa2c8292bc4d3a7999b21b9bf5d3f90838129b4a | |
parent | 4094f28f90adab007eca9babf28f606a40a83032 (diff) |
powerpc/8xx: _PMD_PRESENT already set in level 1 entries
When a PMD entry is valid, _PMD_PRESENT is set. Therefore, forcing that bit
during TLB loading is useless.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
-rw-r--r-- | arch/powerpc/kernel/head_8xx.S | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 8d6e6830a675..46b47e1fe2a9 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/arch/powerpc/kernel/head_8xx.S | |||
@@ -342,7 +342,6 @@ InstructionTLBMiss: | |||
342 | /* We have a pte table, so load the MI_TWC with the attributes | 342 | /* We have a pte table, so load the MI_TWC with the attributes |
343 | * for this "segment." | 343 | * for this "segment." |
344 | */ | 344 | */ |
345 | ori r11,r11,1 /* Set valid bit */ | ||
346 | MTSPR_CPU6(SPRN_MI_TWC, r11, r3) /* Set segment attributes */ | 345 | MTSPR_CPU6(SPRN_MI_TWC, r11, r3) /* Set segment attributes */ |
347 | mfspr r11, SPRN_SRR0 /* Get effective address of fault */ | 346 | mfspr r11, SPRN_SRR0 /* Get effective address of fault */ |
348 | /* Extract level 2 index */ | 347 | /* Extract level 2 index */ |
@@ -419,7 +418,6 @@ DataStoreTLBMiss: | |||
419 | rlwimi r10, r11, 0, 0, 32 - PAGE_SHIFT - 1 /* Add level 2 base */ | 418 | rlwimi r10, r11, 0, 0, 32 - PAGE_SHIFT - 1 /* Add level 2 base */ |
420 | lwz r10, 0(r10) /* Get the pte */ | 419 | lwz r10, 0(r10) /* Get the pte */ |
421 | 420 | ||
422 | ori r11, r11, 1 /* Set valid bit in physical L2 page */ | ||
423 | /* Insert the Guarded flag into the TWC from the Linux PTE. | 421 | /* Insert the Guarded flag into the TWC from the Linux PTE. |
424 | * It is bit 27 of both the Linux PTE and the TWC (at least | 422 | * It is bit 27 of both the Linux PTE and the TWC (at least |
425 | * I got that right :-). It will be better when we can put | 423 | * I got that right :-). It will be better when we can put |