summaryrefslogtreecommitdiff
path: root/openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-26 10:33:32 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-03-26 10:33:32 +0000
commit94756d4adc16a70d53f4db8fec8248aae2256af9 (patch)
treeb1a6b2b8bf2ee89d8a00610f25347828df4846fb /openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c
parentf26476c862bc76370a3884555d8677c9886eb792 (diff)
uncompress patches, requested by Kaloz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@460 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c')
-rw-r--r--openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c31
1 files changed, 31 insertions, 0 deletions
diff --git a/openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c b/openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c
new file mode 100644
index 0000000000..6612dba5d7
--- /dev/null
+++ b/openwrt/package/linux/kernel-patches/012-arch_mips_kernel_traps_c
@@ -0,0 +1,31 @@
+--- linux-mips-cvs/arch/mips/kernel/traps.c 2004-11-22 14:38:23.000000000 +0100
++++ linux-broadcom/arch/mips/kernel/traps.c 2005-01-31 13:13:14.000000000 +0100
+@@ -919,6 +919,7 @@
+ void __init trap_init(void)
+ {
+ extern char except_vec1_generic;
++ extern char except_vec2_generic;
+ extern char except_vec3_generic, except_vec3_r4000;
+ extern char except_vec_ejtag_debug;
+ extern char except_vec4;
+@@ -926,6 +927,7 @@
+
+ /* Copy the generic exception handler code to it's final destination. */
+ memcpy((void *)(KSEG0 + 0x80), &except_vec1_generic, 0x80);
++ memcpy((void *)(KSEG0 + 0x100), &except_vec2_generic, 0x80);
+
+ /*
+ * Setup default vectors
+@@ -984,6 +986,12 @@
+ set_except_vector(13, handle_tr);
+ set_except_vector(22, handle_mdmx);
+
++ if (current_cpu_data.cputype == CPU_SB1) {
++ /* Enable timer interrupt and scd mapped interrupt */
++ clear_c0_status(0xf000);
++ set_c0_status(0xc00);
++ }
++
+ if (cpu_has_fpu && !cpu_has_nofpuex)
+ set_except_vector(15, handle_fpe);
+