diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 21:04:37 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2009-06-23 21:04:37 +0000 |
commit | c49f135f72f98633653300bab5b0ac993b03c6be (patch) | |
tree | 50929b27bcea9ab4dc74b041d6e90967473301fa /target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch | |
parent | 50f2abfa16a2b509955312d1776beeece662c61b (diff) | |
download | mtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.zip mtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.tar.gz mtk-20170518-c49f135f72f98633653300bab5b0ac993b03c6be.tar.bz2 |
use broken-out patches for the coldfire to make it easier to follow differences against the bsp
SVN-Revision: 16547
Diffstat (limited to 'target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch')
-rw-r--r-- | target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch b/target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch new file mode 100644 index 0000000..9956ba7 --- /dev/null +++ b/target/linux/coldfire/patches/074-mcfv4e_except_vector_fix.patch @@ -0,0 +1,56 @@ +From 09895934aaddf4f08345798068b41344068c7b56 Mon Sep 17 00:00:00 2001 +From: Kurt Mahan <kmahan@freescale.com> +Date: Tue, 8 Jul 2008 00:59:38 -0600 +Subject: [PATCH] Fix exception handling to properly get vector. + +LTIBName: mcfv4e-except-vector-fix +Signed-off-by: Kurt Mahan <kmahan@freescale.com> +--- + arch/m68k/coldfire/traps.c | 11 ++++++----- + 1 files changed, 6 insertions(+), 5 deletions(-) + +--- a/arch/m68k/coldfire/traps.c ++++ b/arch/m68k/coldfire/traps.c +@@ -7,6 +7,7 @@ + * 68040 fixes by Martin Apel + * 68060 fixes by Roman Hodek + * 68060 fixes by Jesper Skov ++ * Coldfire fixes by Kurt Mahan + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file COPYING in the main directory of this archive +@@ -288,13 +289,13 @@ void show_stack(struct task_struct *task + void bad_super_trap(struct frame *fp) + { + console_verbose(); +- if (fp->ptregs.vector < 4*sizeof(vec_names)/sizeof(vec_names[0])) ++ if (fp->ptregs.vector < sizeof(vec_names)/sizeof(vec_names[0])) + printk(KERN_WARNING "*** %s *** FORMAT=%X\n", +- vec_names[(fp->ptregs.vector) >> 2], ++ vec_names[fp->ptregs.vector], + fp->ptregs.format); + else + printk(KERN_WARNING "*** Exception %d *** FORMAT=%X\n", +- (fp->ptregs.vector) >> 2, ++ fp->ptregs.vector, + fp->ptregs.format); + printk(KERN_WARNING "Current process id is %d\n", current->pid); + die_if_kernel("BAD KERNEL TRAP", &fp->ptregs, 0); +@@ -306,7 +307,7 @@ asmlinkage void trap_c(struct frame *fp) + siginfo_t info; + + if (fp->ptregs.sr & PS_S) { +- if ((fp->ptregs.vector >> 2) == VEC_TRACE) { ++ if (fp->ptregs.vector == VEC_TRACE) { + /* traced a trapping instruction */ + current->ptrace |= PT_DTRACE; + } else +@@ -315,7 +316,7 @@ asmlinkage void trap_c(struct frame *fp) + } + + /* send the appropriate signal to the user program */ +- switch ((fp->ptregs.vector) >> 2) { ++ switch (fp->ptregs.vector) { + case VEC_ADDRERR: + info.si_code = BUS_ADRALN; + sig = SIGBUS; |