summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/pgtable_32.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-06-03 18:54:02 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 18:10:29 +0900
commit66dfe18114839a7297f56f43f03125f4121de79b (patch)
tree74519e931d2205d0871ed541297977100b110a9f /include/asm-sh/pgtable_32.h
parent74fcc77982e703fe85d8bd5437130fd94c61daee (diff)
downloadblackbird-obmc-linux-66dfe18114839a7297f56f43f03125f4121de79b.tar.gz
blackbird-obmc-linux-66dfe18114839a7297f56f43f03125f4121de79b.zip
sh: Add support for 16kB PAGE_SIZE.
16kB is a useful size on nommu, while 64kB still tends to be too big to be useful. Newer MMUs are likely to support this as well, so plug it in in anticipation of those, too. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/pgtable_32.h')
-rw-r--r--include/asm-sh/pgtable_32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-sh/pgtable_32.h b/include/asm-sh/pgtable_32.h
index cbc731d35c25..72ea209195bd 100644
--- a/include/asm-sh/pgtable_32.h
+++ b/include/asm-sh/pgtable_32.h
@@ -102,7 +102,9 @@
#define _PAGE_FLAGS_HARDWARE_MASK (PHYS_ADDR_MASK & ~(_PAGE_CLEAR_FLAGS))
/* Hardware flags, page size encoding */
-#if defined(CONFIG_X2TLB)
+#if !defined(CONFIG_MMU)
+# define _PAGE_FLAGS_HARD 0ULL
+#elif defined(CONFIG_X2TLB)
# if defined(CONFIG_PAGE_SIZE_4KB)
# define _PAGE_FLAGS_HARD _PAGE_EXT(_PAGE_EXT_ESZ0)
# elif defined(CONFIG_PAGE_SIZE_8KB)
OpenPOWER on IntegriCloud