Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133278
b: refs/heads/master
c: 0197f21
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Feb 27, 2009
1 parent 0847050 commit f417c45
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4f099ebb27211d378304ddcfa507097f5128f5b9
refs/heads/master: 0197f21ca5c5ed0df2a14a60ef073e8163e6533b
5 changes: 5 additions & 0 deletions trunk/arch/sh/include/asm/entry-macros.S
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@
#endif
.endm

#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)
# define PREF(x) pref @x
#else
# define PREF(x) nop
#endif
7 changes: 5 additions & 2 deletions trunk/arch/sh/kernel/cpu/sh3/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ tlb_miss:
sts pr, k3 ! save original pr value in k3

handle_exception:
mova exception_data, k0

! Setup stack and save DSP context (k0 contains original r15 on return)
bsr prepare_stack_save_dsp
nop
PREF(k0)

! Save registers / Switch to bank 0
mov.l 5f, k2 ! vector register address
Expand Down Expand Up @@ -556,10 +558,11 @@ ENTRY(handle_interrupt)
11:
#endif /* defined(CONFIG_KGDB) */
sts pr, k3 ! save original pr value in k3
mova exception_data, k0

! Setup stack and save DSP context (k0 contains original r15 on return)
bsr prepare_stack_save_dsp
nop
PREF(k0)

! Save registers / Switch to bank 0
bsr save_regs ! needs original pr value in k3
Expand Down

0 comments on commit f417c45

Please sign in to comment.