]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/8xx: remove remaining unnecessary code in FixupDAR
authorLEROY Christophe <christophe.leroy@c-s.fr>
Tue, 20 Jan 2015 09:57:33 +0000 (10:57 +0100)
committerScott Wood <scottwood@freescale.com>
Fri, 30 Jan 2015 03:58:01 +0000 (21:58 -0600)
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>
arch/powerpc/kernel/head_8xx.S

index 65492d0439647a90cf0ffe685b41286acbc63cb7..73715cd0de452f1c17c85475efac28ef2eeb40f6 100644 (file)
@@ -529,9 +529,6 @@ DARFixed:/* Return from dcbx instruction bug workaround */
  /* define if you don't want to use self modifying code */
 #define NO_SELF_MODIFYING_CODE
 FixupDAR:/* Entry point for dcbx workaround. */
-#ifdef CONFIG_8xx_CPU6
-       mtspr   SPRN_DAR, r3
-#endif
        mtspr   SPRN_SPRG_SCRATCH2, r10
        /* fetch instruction from memory. */
        mfspr   r10, SPRN_SRR0
@@ -548,9 +545,6 @@ FixupDAR:/* Entry point for dcbx workaround. */
        /* Extract level 2 index */
        rlwinm  r11, r11, 32 - (PAGE_SHIFT - 2), 32 - PAGE_SHIFT, 29
        lwzx    r11, r10, r11   /* Get the pte */
-#ifdef CONFIG_8xx_CPU6
-       mfspr   r3, SPRN_DAR
-#endif
        /* concat physical page address(r11) and page offset(r10) */
        mfspr   r10, SPRN_SRR0
        rlwimi  r11, r10, 0, 32 - PAGE_SHIFT, 31