aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-27 05:22:53 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 05:22:53 -0400
commit315bb96824149614efe4844ded077a13fc908880 (patch)
tree3a8db24ec8554d8e56b1460d85cc81b34299b0d7 /arch
parenta6a31139897a5e539efe7ad3b7bd351fa9673ce8 (diff)
sh: CPU flags in AT_HWCAP in ELF auxvt.
Encode processor flags in AT_HWCAP in the ELF auxiliary vector. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/cpu/sh4/probe.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c
index 6e8a2b5268e8..0e65aa6ddcaa 100644
--- a/arch/sh/kernel/cpu/sh4/probe.c
+++ b/arch/sh/kernel/cpu/sh4/probe.c
@@ -76,6 +76,7 @@ int __init detect_cpu_and_cache_system(void)
76 cpu_data->type = CPU_SH73180; 76 cpu_data->type = CPU_SH73180;
77 cpu_data->icache.ways = 4; 77 cpu_data->icache.ways = 4;
78 cpu_data->dcache.ways = 4; 78 cpu_data->dcache.ways = 4;
79 cpu_data->flags |= CPU_HAS_LLSC;
79 break; 80 break;
80 case 0x2001: 81 case 0x2001:
81 case 0x2004: 82 case 0x2004:
@@ -83,7 +84,7 @@ int __init detect_cpu_and_cache_system(void)
83 cpu_data->icache.ways = 4; 84 cpu_data->icache.ways = 4;
84 cpu_data->dcache.ways = 4; 85 cpu_data->dcache.ways = 4;
85 86
86 cpu_data->flags |= CPU_HAS_FPU; 87 cpu_data->flags |= CPU_HAS_FPU | CPU_HAS_LLSC;
87 break; 88 break;
88 case 0x2006: 89 case 0x2006:
89 case 0x200A: 90 case 0x200A:
@@ -95,13 +96,15 @@ int __init detect_cpu_and_cache_system(void)
95 cpu_data->icache.ways = 4; 96 cpu_data->icache.ways = 4;
96 cpu_data->dcache.ways = 4; 97 cpu_data->dcache.ways = 4;
97 98
98 cpu_data->flags |= CPU_HAS_FPU | CPU_HAS_PERF_COUNTER; 99 cpu_data->flags |= CPU_HAS_FPU | CPU_HAS_PERF_COUNTER |
100 CPU_HAS_LLSC;
99 break; 101 break;
100 case 0x3000: 102 case 0x3000:
101 case 0x3003: 103 case 0x3003:
102 cpu_data->type = CPU_SH7343; 104 cpu_data->type = CPU_SH7343;
103 cpu_data->icache.ways = 4; 105 cpu_data->icache.ways = 4;
104 cpu_data->dcache.ways = 4; 106 cpu_data->dcache.ways = 4;
107 cpu_data->flags |= CPU_HAS_LLSC;
105 break; 108 break;
106 case 0x8000: 109 case 0x8000:
107 cpu_data->type = CPU_ST40RA; 110 cpu_data->type = CPU_ST40RA;
@@ -180,4 +183,3 @@ int __init detect_cpu_and_cache_system(void)
180 183
181 return 0; 184 return 0;
182} 185}
183