Skip to content

Commit

Permalink
[Blackfin] arch: In the double fault handler, set up the PT_RETI slot
Browse files Browse the repository at this point in the history
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 <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed May 7, 2008
1 parent 1bfb4b2 commit ddb3f00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/blackfin/mach-common/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddb3f00

Please sign in to comment.