diff options
author | LEROY Christophe <christophe.leroy@c-s.fr> | 2015-01-20 04:57:33 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-01-29 22:58:01 -0500 |
commit | 2374d0af29c154d6d989987a94278caed8c13be5 (patch) | |
tree | 47d8aeac4a1697a6973284738f09a79b194bea4a /arch/powerpc | |
parent | debddd95ec0bb8ac1bbe719b5e4588e453c7b2fc (diff) |
powerpc/8xx: remove remaining unnecessary code in FixupDAR
Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), MD_EPN and
MD_TWC are not writen anymore in FixupDAR so saving r3 has become useless.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/head_8xx.S | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 65492d043964..73715cd0de45 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/arch/powerpc/kernel/head_8xx.S | |||
@@ -529,9 +529,6 @@ DARFixed:/* Return from dcbx instruction bug workaround */ | |||
529 | /* define if you don't want to use self modifying code */ | 529 | /* define if you don't want to use self modifying code */ |
530 | #define NO_SELF_MODIFYING_CODE | 530 | #define NO_SELF_MODIFYING_CODE |
531 | FixupDAR:/* Entry point for dcbx workaround. */ | 531 | FixupDAR:/* Entry point for dcbx workaround. */ |
532 | #ifdef CONFIG_8xx_CPU6 | ||
533 | mtspr SPRN_DAR, r3 | ||
534 | #endif | ||
535 | mtspr SPRN_SPRG_SCRATCH2, r10 | 532 | mtspr SPRN_SPRG_SCRATCH2, r10 |
536 | /* fetch instruction from memory. */ | 533 | /* fetch instruction from memory. */ |
537 | mfspr r10, SPRN_SRR0 | 534 | mfspr r10, SPRN_SRR0 |
@@ -548,9 +545,6 @@ FixupDAR:/* Entry point for dcbx workaround. */ | |||
548 | /* Extract level 2 index */ | 545 | /* Extract level 2 index */ |
549 | rlwinm r11, r11, 32 - (PAGE_SHIFT - 2), 32 - PAGE_SHIFT, 29 | 546 | rlwinm r11, r11, 32 - (PAGE_SHIFT - 2), 32 - PAGE_SHIFT, 29 |
550 | lwzx r11, r10, r11 /* Get the pte */ | 547 | lwzx r11, r10, r11 /* Get the pte */ |
551 | #ifdef CONFIG_8xx_CPU6 | ||
552 | mfspr r3, SPRN_DAR | ||
553 | #endif | ||
554 | /* concat physical page address(r11) and page offset(r10) */ | 548 | /* concat physical page address(r11) and page offset(r10) */ |
555 | mfspr r10, SPRN_SRR0 | 549 | mfspr r10, SPRN_SRR0 |
556 | rlwimi r11, r10, 0, 32 - PAGE_SHIFT, 31 | 550 | rlwimi r11, r10, 0, 32 - PAGE_SHIFT, 31 |