From: Bernd Schmidt Date: Wed, 7 May 2008 03:41:26 +0000 (+0800) Subject: [Blackfin] arch: In the double fault handler, set up the PT_RETI slot X-Git-Tag: v2.6.26-rc2~12^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ddb3f00ca0897f585128a6cca229eeb9d91fa6ef;p=karo-tx-linux.git [Blackfin] arch: In the double fault handler, set up the PT_RETI slot In the double fault handler, set up the PT_RETI slot so that we print out the correct return address in the dumping code. Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/mach-common/entry.S b/arch/blackfin/mach-common/entry.S index f2fb87e9a46e..7365a17a6a81 100644 --- a/arch/blackfin/mach-common/entry.S +++ b/arch/blackfin/mach-common/entry.S @@ -295,6 +295,11 @@ ENTRY(_double_fault) */ SAVE_ALL_SYS + /* The dumping functions expect the return address in the RETI + * slot. */ + r6 = retx; + [sp + PT_PC] = r6; + r0 = sp; /* stack frame pt_regs pointer argument ==> r0 */ SP += -12; call _double_fault_c;