From: Carsten Langgaard <carstenl@mips.com>
To: linux-mips@oss.sgi.com
Subject: EJTAG patch
Date: Thu, 17 Jan 2002 15:18:55 +0100 [thread overview]
Message-ID: <3C46DD4F.225E134E@mips.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 588 bytes --]
I have attached a patch for EJTAG exception support on MIPS32 CPUs.
I send these patches to everyone and not just Ralf, because I've got
questions from various people about MIPS32 CPUs and Malta board support
in the 2.4.17 kernel.
Sorry to disturb the rest of you.
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
[-- Attachment #2: ejtag.patch --]
[-- Type: text/plain, Size: 1885 bytes --]
Index: arch/mips/kernel/setup.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/setup.c,v
retrieving revision 1.96.2.4
diff -u -r1.96.2.4 setup.c
--- arch/mips/kernel/setup.c 2002/01/07 03:33:54 1.96.2.4
+++ arch/mips/kernel/setup.c 2002/01/17 15:11:23
@@ -150,6 +150,10 @@
case CPU_NEVADA:
case CPU_RM7000:
case CPU_TX49XX:
+ case CPU_4KC:
+ case CPU_4KEC:
+ case CPU_4KSC:
+ case CPU_5KC:
cpu_wait = r4k_wait;
printk(" available.\n");
break;
@@ -435,7 +439,7 @@
mips_cpu.options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
MIPS_CPU_4KTLB | MIPS_CPU_COUNTER |
MIPS_CPU_DIVEC | MIPS_CPU_WATCH |
- MIPS_CPU_MCHECK;
+ MIPS_CPU_MCHECK | MIPS_CPU_EJTAG;
config1 = read_mips32_cp0_config1();
if (config1 & (1 << 3))
mips_cpu.options |= MIPS_CPU_WATCH;
@@ -452,7 +456,7 @@
mips_cpu.options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
MIPS_CPU_4KTLB | MIPS_CPU_COUNTER |
MIPS_CPU_DIVEC | MIPS_CPU_WATCH |
- MIPS_CPU_MCHECK;
+ MIPS_CPU_MCHECK | MIPS_CPU_EJTAG;
config1 = read_mips32_cp0_config1();
if (config1 & (1 << 3))
mips_cpu.options |= MIPS_CPU_WATCH;
Index: arch/mips/kernel/traps.c
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/traps.c,v
retrieving revision 1.99.2.3
diff -u -r1.99.2.3 traps.c
--- arch/mips/kernel/traps.c 2001/12/29 05:37:49 1.99.2.3
+++ arch/mips/kernel/traps.c 2002/01/17 15:11:23
@@ -853,7 +853,7 @@
* destination.
*/
if (mips_cpu.options & MIPS_CPU_EJTAG)
- memcpy((void *)(KSEG0 + 0x200), &except_vec_ejtag_debug, 0x80);
+ memcpy((void *)(KSEG0 + 0x300), &except_vec_ejtag_debug, 0x80);
/*
* Only some CPUs have the watch exceptions or a dedicated
reply other threads:[~2002-01-17 15:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C46DD4F.225E134E@mips.com \
--to=carstenl@mips.com \
--cc=linux-mips@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox