aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLEROY Christophe <christophe.leroy@c-s.fr>2015-01-20 04:57:34 -0500
committerScott Wood <scottwood@freescale.com>2015-01-29 22:59:02 -0500
commit4545ff7ed841df77a239a22bffed4fc977a7d7bc (patch)
treec589a70f4e8af9cb2c97d72adf9863d189e303a1
parentfde5a9057fcf2e96da1de3b6acf815c1e7d73f1e (diff)
powerpc/8xx: Remove duplicated code in set_context()
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.S10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S
index 24934e79cd23..9b53fe139bf6 100644
--- a/arch/powerpc/kernel/head_8xx.S
+++ b/arch/powerpc/kernel/head_8xx.S
@@ -850,23 +850,21 @@ _GLOBAL(set_context)
850 */ 850 */
851 li r5, (swapper_pg_dir-PAGE_OFFSET)@l 851 li r5, (swapper_pg_dir-PAGE_OFFSET)@l
852 sub r4, r4, r5 852 sub r4, r4, r5
853 tophys (r4, r4)
853#ifdef CONFIG_8xx_CPU6 854#ifdef CONFIG_8xx_CPU6
854 lis r6, cpu6_errata_word@h 855 lis r6, cpu6_errata_word@h
855 ori r6, r6, cpu6_errata_word@l 856 ori r6, r6, cpu6_errata_word@l
856 tophys (r4, r4)
857 li r7, 0x3f80 857 li r7, 0x3f80
858 stw r7, 12(r6) 858 stw r7, 12(r6)
859 lwz r7, 12(r6) 859 lwz r7, 12(r6)
860#endif
860 mtspr SPRN_M_TW, r4 /* Update pointeur to level 1 table */ 861 mtspr SPRN_M_TW, r4 /* Update pointeur to level 1 table */
862#ifdef CONFIG_8xx_CPU6
861 li r7, 0x3380 863 li r7, 0x3380
862 stw r7, 12(r6) 864 stw r7, 12(r6)
863 lwz r7, 12(r6) 865 lwz r7, 12(r6)
864 mtspr SPRN_M_CASID, r3 /* Update context */
865#else
866 mtspr SPRN_M_CASID,r3 /* Update context */
867 tophys (r4, r4)
868 mtspr SPRN_M_TW, r4 /* and pgd */
869#endif 866#endif
867 mtspr SPRN_M_CASID, r3 /* Update context */
870 SYNC 868 SYNC
871 blr 869 blr
872 870