xscale-cp0.c (da733563be5a9da26fe81d9f007262d00b846e22) xscale-cp0.c (4ed89f2228061422ce5f62545fd0b6f6648bd2cc)
1/*
2 * linux/arch/arm/kernel/xscale-cp0.c
3 *
4 * XScale DSP and iWMMXt coprocessor context switching and handling
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 143 unchanged lines hidden (view full) ---

152{
153 u32 cp_access;
154
155 cp_access = xscale_cp_access_read() & ~3;
156 xscale_cp_access_write(cp_access | 1);
157
158 if (cpu_has_iwmmxt()) {
159#ifndef CONFIG_IWMMXT
1/*
2 * linux/arch/arm/kernel/xscale-cp0.c
3 *
4 * XScale DSP and iWMMXt coprocessor context switching and handling
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 143 unchanged lines hidden (view full) ---

152{
153 u32 cp_access;
154
155 cp_access = xscale_cp_access_read() & ~3;
156 xscale_cp_access_write(cp_access | 1);
157
158 if (cpu_has_iwmmxt()) {
159#ifndef CONFIG_IWMMXT
160 printk(KERN_WARNING "CAUTION: XScale iWMMXt coprocessor "
161 "detected, but kernel support is missing.\n");
160 pr_warn("CAUTION: XScale iWMMXt coprocessor detected, but kernel support is missing.\n");
162#else
161#else
163 printk(KERN_INFO "XScale iWMMXt coprocessor detected.\n");
162 pr_info("XScale iWMMXt coprocessor detected.\n");
164 elf_hwcap |= HWCAP_IWMMXT;
165 thread_register_notifier(&iwmmxt_notifier_block);
166#endif
167 } else {
163 elf_hwcap |= HWCAP_IWMMXT;
164 thread_register_notifier(&iwmmxt_notifier_block);
165#endif
166 } else {
168 printk(KERN_INFO "XScale DSP coprocessor detected.\n");
167 pr_info("XScale DSP coprocessor detected.\n");
169 thread_register_notifier(&dsp_notifier_block);
170 cp_access |= 1;
171 }
172
173 xscale_cp_access_write(cp_access);
174
175 return 0;
176}
177
178late_initcall(xscale_cp0_init);
168 thread_register_notifier(&dsp_notifier_block);
169 cp_access |= 1;
170 }
171
172 xscale_cp_access_write(cp_access);
173
174 return 0;
175}
176
177late_initcall(xscale_cp0_init);