summaryrefslogtreecommitdiffstats
path: root/include/asm-sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-07-28 11:39:25 +0200
committerPaul Mundt <lethal@linux-sh.org>2008-07-28 11:39:25 +0200
commit761656e6beecb38c723f207d7408c753d3103ba8 (patch)
treeed923a90244b4f9409db1da1d698fddaeb50ccf1 /include/asm-sh
parentsh: Workaround for __put_user_asm() bug with gcc 4.x on big-endian. (diff)
downloadlinux-761656e6beecb38c723f207d7408c753d3103ba8.tar.xz
linux-761656e6beecb38c723f207d7408c753d3103ba8.zip
sh: Move asid_cache() out of ifdef to fix SH-3/4 nommu build.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r--include/asm-sh/mmu_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-sh/mmu_context.h b/include/asm-sh/mmu_context.h
index 87e812f68bb0..8589a50febd0 100644
--- a/include/asm-sh/mmu_context.h
+++ b/include/asm-sh/mmu_context.h
@@ -27,8 +27,9 @@
/* ASID is 8-bit value, so it can't be 0x100 */
#define MMU_NO_ASID 0x100
-#ifdef CONFIG_MMU
#define asid_cache(cpu) (cpu_data[cpu].asid_cache)
+
+#ifdef CONFIG_MMU
#define cpu_context(cpu, mm) ((mm)->context.id[cpu])
#define cpu_asid(cpu, mm) \