提交 959d6173 编写于 作者: L LEROY Christophe 提交者: Scott Wood

powerpc/8xx: Implement 16k pages

This patch activates the handling of 16k pages on the MPC8xx.
Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: NScott Wood <scottwood@freescale.com>
上级 ac21951f
...@@ -549,7 +549,7 @@ config PPC_4K_PAGES ...@@ -549,7 +549,7 @@ config PPC_4K_PAGES
bool "4k page size" bool "4k page size"
config PPC_16K_PAGES config PPC_16K_PAGES
bool "16k page size" if 44x bool "16k page size" if 44x || PPC_8xx
config PPC_64K_PAGES config PPC_64K_PAGES
bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64 bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64
......
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
* additional information from the MI_EPN, and MI_TWC registers. * additional information from the MI_EPN, and MI_TWC registers.
*/ */
#define SPRN_MI_RPN 790 #define SPRN_MI_RPN 790
#define MI_SPS16K 0x00000008 /* Small page size (0 = 4k, 1 = 16k) */
/* Define an RPN value for mapping kernel memory to large virtual /* Define an RPN value for mapping kernel memory to large virtual
* pages for boot initialization. This has real page number of 0, * pages for boot initialization. This has real page number of 0,
...@@ -129,6 +130,7 @@ ...@@ -129,6 +130,7 @@
* additional information from the MD_EPN, and MD_TWC registers. * additional information from the MD_EPN, and MD_TWC registers.
*/ */
#define SPRN_MD_RPN 798 #define SPRN_MD_RPN 798
#define MD_SPS16K 0x00000008 /* Small page size (0 = 4k, 1 = 16k) */
/* This is a temporary storage register that could be used to save /* This is a temporary storage register that could be used to save
* a processor working register during a tablewalk. * a processor working register during a tablewalk.
......
...@@ -45,7 +45,11 @@ ...@@ -45,7 +45,11 @@
* Value for the bits that have fixed value in RPN entries. * Value for the bits that have fixed value in RPN entries.
* Also used for tagging DAR for DTLBerror. * Also used for tagging DAR for DTLBerror.
*/ */
#ifdef CONFIG_PPC_16K_PAGES
#define RPN_PATTERN (0x00f0 | MD_SPS16K)
#else
#define RPN_PATTERN 0x00f0 #define RPN_PATTERN 0x00f0
#endif
__HEAD __HEAD
_ENTRY(_stext); _ENTRY(_stext);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册