switch to 2.6.38
[openwrt/staging/lynxis/omap.git] / target / linux / coldfire / patches / 019-Fix-the-format-field-for-the-Coldfire-exception-fram.patch
1 From 53cfdf92d9b68f5dac006853dd6727d7bf666b17 Mon Sep 17 00:00:00 2001
2 From: Alison Wang <b18965@freescale.com>
3 Date: Thu, 4 Aug 2011 09:59:44 +0800
4 Subject: [PATCH 19/52] Fix the format field for the Coldfire exception frame
5
6 Different with M68K, the correct format field encoding
7 for ColdFire should be 4, 5, 6 or 7.
8
9 Signed-off-by: Alison Wang <b18965@freescale.com>
10 ---
11 arch/m68k/mm/fault.c | 4 ++++
12 1 files changed, 4 insertions(+), 0 deletions(-)
13
14 --- a/arch/m68k/mm/fault.c
15 +++ b/arch/m68k/mm/fault.c
16 @@ -45,7 +45,11 @@ int send_fault_sig(struct pt_regs *regs)
17 regs->stkadj = frame_extra_sizes[regs->format];
18 tregs = (struct pt_regs *)((ulong)regs + regs->stkadj);
19 tregs->vector = regs->vector;
20 +#ifdef CONFIG_COLDFIRE
21 + tregs->format = regs->stkadj + 4;
22 +#else
23 tregs->format = 0;
24 +#endif
25 tregs->pc = fixup->fixup;
26 tregs->sr = regs->sr;
27 return -1;