Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] 16KB page size in mips32
@ 2007-07-20  8:10 Dajie Tan
  2007-07-30 14:11 ` Songmao Tian
  0 siblings, 1 reply; 2+ messages in thread
From: Dajie Tan @ 2007-07-20  8:10 UTC (permalink / raw)
  To: linux-mips

Hello,

32-bit Kernel for loongson2e currently use 16KB page size to avoid
cache alias problem.So, the definiton of PGDIR_SHIFT muse be 14+12.

The last is the patch. It's been tested on FuLong mini PC(loongson2e inside).


--------------------

--- a/include/asm-mips/pgtable-32.h 2007-07-19 08:22:43.000000000 +0800
+++ b/include/asm-mips/pgtable-32.h 2007-07-20 11:12:40.000000000 +0800
@@ -46,7 +46,7 @@
 #ifdef CONFIG_64BIT_PHYS_ADDR
 #define PGDIR_SHIFT    21
 #else
-#define PGDIR_SHIFT    22
+#define PGDIR_SHIFT    (PAGE_SHIFT + (PAGE_SHIFT + PTE_ORDER - 2))
 #endif
 #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
 #define PGDIR_MASK (~(PGDIR_SIZE-1))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-30 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-20  8:10 [PATCH] 16KB page size in mips32 Dajie Tan
2007-07-30 14:11 ` Songmao Tian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox