aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorKieran Bingham <kieranbingham@gmail.com>2009-05-08 15:49:50 +0100
committerPaul Mundt <lethal@linux-sh.org>2009-05-09 00:09:21 +0900
commite73173dbe55e5b4c2306728aad50c8e42194f6d5 (patch)
tree3c9eb779f1d376b2bff8d5482717260d26f9981d /arch/sh/kernel
parentbe6514c6295cc79498eeb9a8f933451082ca9e69 (diff)
downloadkernel_samsung_aries-e73173dbe55e5b4c2306728aad50c8e42194f6d5.zip
kernel_samsung_aries-e73173dbe55e5b4c2306728aad50c8e42194f6d5.tar.gz
kernel_samsung_aries-e73173dbe55e5b4c2306728aad50c8e42194f6d5.tar.bz2
sh: Fix UBC setup and registers for SH2A
Signed-off-by: Kieran Bingham <kieranbingham@gmail.com> Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/process_32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c
index 6d94725..9289ede 100644
--- a/arch/sh/kernel/process_32.c
+++ b/arch/sh/kernel/process_32.c
@@ -251,7 +251,8 @@ static void ubc_set_tracing(int asid, unsigned long pc)
if (current_cpu_data.type == CPU_SH7729 ||
current_cpu_data.type == CPU_SH7710 ||
- current_cpu_data.type == CPU_SH7712) {
+ current_cpu_data.type == CPU_SH7712 ||
+ current_cpu_data.type == CPU_SH7203){
ctrl_outw(BBR_INST | BBR_READ | BBR_CPU, UBC_BBRA);
ctrl_outl(BRCR_PCBA | BRCR_PCTE, UBC_BRCR);
} else {
@@ -407,6 +408,7 @@ asmlinkage void break_point_trap(void)
#else
ctrl_outw(0, UBC_BBRA);
ctrl_outw(0, UBC_BBRB);
+ ctrl_outl(0, UBC_BRCR);
#endif
current->thread.ubc_pc = 0;
ubc_usercnt -= 1;