diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-02-27 02:41:17 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-02-27 02:41:17 -0500 |
commit | 0197f21ca5c5ed0df2a14a60ef073e8163e6533b (patch) | |
tree | d5068ed91e1e9b438d46934c50d97dcadd24e8bb /arch/sh/kernel/cpu/sh3 | |
parent | 4f099ebb27211d378304ddcfa507097f5128f5b9 (diff) |
sh: prefetch early exception data on sh4/sh4a.
Prefetch early exception data. There is unused space in our
exception handler cache line anyway, so this is almost free.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh3')
-rw-r--r-- | arch/sh/kernel/cpu/sh3/entry.S | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S index 0271fe08de27..e984e94394ec 100644 --- a/arch/sh/kernel/cpu/sh3/entry.S +++ b/arch/sh/kernel/cpu/sh3/entry.S | |||
@@ -463,9 +463,11 @@ tlb_miss: | |||
463 | sts pr, k3 ! save original pr value in k3 | 463 | sts pr, k3 ! save original pr value in k3 |
464 | 464 | ||
465 | handle_exception: | 465 | handle_exception: |
466 | mova exception_data, k0 | ||
467 | |||
466 | ! Setup stack and save DSP context (k0 contains original r15 on return) | 468 | ! Setup stack and save DSP context (k0 contains original r15 on return) |
467 | bsr prepare_stack_save_dsp | 469 | bsr prepare_stack_save_dsp |
468 | nop | 470 | PREF(k0) |
469 | 471 | ||
470 | ! Save registers / Switch to bank 0 | 472 | ! Save registers / Switch to bank 0 |
471 | mov.l 5f, k2 ! vector register address | 473 | mov.l 5f, k2 ! vector register address |
@@ -556,10 +558,11 @@ ENTRY(handle_interrupt) | |||
556 | 11: | 558 | 11: |
557 | #endif /* defined(CONFIG_KGDB) */ | 559 | #endif /* defined(CONFIG_KGDB) */ |
558 | sts pr, k3 ! save original pr value in k3 | 560 | sts pr, k3 ! save original pr value in k3 |
561 | mova exception_data, k0 | ||
559 | 562 | ||
560 | ! Setup stack and save DSP context (k0 contains original r15 on return) | 563 | ! Setup stack and save DSP context (k0 contains original r15 on return) |
561 | bsr prepare_stack_save_dsp | 564 | bsr prepare_stack_save_dsp |
562 | nop | 565 | PREF(k0) |
563 | 566 | ||
564 | ! Save registers / Switch to bank 0 | 567 | ! Save registers / Switch to bank 0 |
565 | bsr save_regs ! needs original pr value in k3 | 568 | bsr save_regs ! needs original pr value in k3 |