diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:55:41 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 01:55:41 -0400 |
commit | 749cf486920bf53f16e6a6889d9635a91ffb6c82 (patch) | |
tree | ff288990effd0fe5bf980d6c27af5dc9ad11bc3d /arch/sh/kernel/cpu/sh4/sq.c | |
parent | 94c0fa520cc169ccf661e9c03b5b95f74d1520b8 (diff) |
sh: Add flag for MMU PTEA capability.
Add CPU_HAS_PTEA, refactor some of the cpu flag settings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4/sq.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/sq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c index 32c93b781b51..b148966dd7c7 100644 --- a/arch/sh/kernel/cpu/sh4/sq.c +++ b/arch/sh/kernel/cpu/sh4/sq.c | |||
@@ -166,9 +166,9 @@ static struct sq_mapping *__sq_remap(struct sq_mapping *map) | |||
166 | ctrl_outl((pteh & MMU_VPN_MASK) | get_asid(), MMU_PTEH); | 166 | ctrl_outl((pteh & MMU_VPN_MASK) | get_asid(), MMU_PTEH); |
167 | 167 | ||
168 | ptel = map->addr & PAGE_MASK; | 168 | ptel = map->addr & PAGE_MASK; |
169 | #ifndef CONFIG_CPU_SUBTYPE_SH7780 | 169 | |
170 | ctrl_outl(((ptel >> 28) & 0xe) | (ptel & 0x1), MMU_PTEA); | 170 | if (cpu_data->flags & CPU_HAS_PTEA) |
171 | #endif | 171 | ctrl_outl(((ptel >> 28) & 0xe) | (ptel & 0x1), MMU_PTEA); |
172 | 172 | ||
173 | pgprot = pgprot_noncached(PAGE_KERNEL); | 173 | pgprot = pgprot_noncached(PAGE_KERNEL); |
174 | 174 | ||