aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-10-28 09:37:47 +0000
committerRalf Baechle <ralf@linux-mips.org>2008-10-30 14:44:33 +0000
commitc46b302b948e2070cb713171207c42e9586f131a (patch)
treed37899a10643e3959d1da35928f8f66bc21dada5 /arch/mips/include
parent864cbf804ddfb3d63d3ba3cca7afdeb98be23434 (diff)
downloadkernel_goldelico_gta04-c46b302b948e2070cb713171207c42e9586f131a.zip
kernel_goldelico_gta04-c46b302b948e2070cb713171207c42e9586f131a.tar.gz
kernel_goldelico_gta04-c46b302b948e2070cb713171207c42e9586f131a.tar.bz2
MIPS: New feature test macro cpu_has_mips_r
cpu_has_mips_r is true if a processor is MIPS32 or MIPS64, any architecture revision. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/cpu-features.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-features.h b/arch/mips/include/asm/cpu-features.h
index 5ea701f..12d12df 100644
--- a/arch/mips/include/asm/cpu-features.h
+++ b/arch/mips/include/asm/cpu-features.h
@@ -141,6 +141,8 @@
#define cpu_has_mips64 (cpu_has_mips64r1 | cpu_has_mips64r2)
#define cpu_has_mips_r1 (cpu_has_mips32r1 | cpu_has_mips64r1)
#define cpu_has_mips_r2 (cpu_has_mips32r2 | cpu_has_mips64r2)
+#define cpu_has_mips_r (cpu_has_mips32r1 | cpu_has_mips32r2 | \
+ cpu_has_mips64r1 | cpu_has_mips64r2)
#ifndef cpu_has_dsp
#define cpu_has_dsp (cpu_data[0].ases & MIPS_ASE_DSP)