* binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ?
@ 2001-02-27 15:11 Steven Liu
2001-02-27 15:11 ` Steven Liu
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Steven Liu @ 2001-02-27 15:11 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
Hi ALL:
Thank you for your help.
If any one knows where I can find the following files:
binutils-2.8.1-mips.patch and
egcs-1.1.2-mips.patch,
please let me know.
Regards,
Steven Liu
[-- Attachment #2: Type: text/html, Size: 967 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ?
2001-02-27 15:11 binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ? Steven Liu
@ 2001-02-27 15:11 ` Steven Liu
2001-02-28 12:33 ` Ralf Baechle
2001-02-28 21:42 ` Patch allowing GDB to ignore misaligned data faults Quinn Jensen
2 siblings, 0 replies; 7+ messages in thread
From: Steven Liu @ 2001-02-27 15:11 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
Hi ALL:
Thank you for your help.
If any one knows where I can find the following files:
binutils-2.8.1-mips.patch and
egcs-1.1.2-mips.patch,
please let me know.
Regards,
Steven Liu
[-- Attachment #2: Type: text/html, Size: 967 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ?
2001-02-27 15:11 binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ? Steven Liu
2001-02-27 15:11 ` Steven Liu
@ 2001-02-28 12:33 ` Ralf Baechle
2001-02-28 12:33 ` Ralf Baechle
2001-02-28 21:42 ` Patch allowing GDB to ignore misaligned data faults Quinn Jensen
2 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2001-02-28 12:33 UTC (permalink / raw)
To: Steven Liu; +Cc: linux-mips
On Tue, Feb 27, 2001 at 07:11:10AM -0800, Steven Liu wrote:
> Thank you for your help.
>
> If any one knows where I can find the following files:
> binutils-2.8.1-mips.patch and
> egcs-1.1.2-mips.patch,
> please let me know.
They're part of the srpm crosscompiler packages on oss.sgi.com.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ?
2001-02-28 12:33 ` Ralf Baechle
@ 2001-02-28 12:33 ` Ralf Baechle
0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2001-02-28 12:33 UTC (permalink / raw)
To: Steven Liu; +Cc: linux-mips
On Tue, Feb 27, 2001 at 07:11:10AM -0800, Steven Liu wrote:
> Thank you for your help.
>
> If any one knows where I can find the following files:
> binutils-2.8.1-mips.patch and
> egcs-1.1.2-mips.patch,
> please let me know.
They're part of the srpm crosscompiler packages on oss.sgi.com.
Ralf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Patch allowing GDB to ignore misaligned data faults
2001-02-27 15:11 binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ? Steven Liu
2001-02-27 15:11 ` Steven Liu
2001-02-28 12:33 ` Ralf Baechle
@ 2001-02-28 21:42 ` Quinn Jensen
2001-02-28 22:18 ` Jun Sun
2 siblings, 1 reply; 7+ messages in thread
From: Quinn Jensen @ 2001-02-28 21:42 UTC (permalink / raw)
To: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
When using gdb on the kernel, I've found it helpful to allow
misaligned exceptions to be emulated instead of being
intercepted by gdb. The following patch does this. But is
there a better way? Perhaps a config.in option?
Or is this a case of treating the symptom? Maybe there are
far too many altogether. The network stack seems to
be littered with them--is skbuf alignment bad or something?
Ouch, I just looked and after a couple of days there have
been a lot! This machine is running with nfs root, so every
time you breathe there's a lot of network I/O.
What kind of "unaligned accesses" counts are others seeing?
/ # cat /proc/cpuinfo
cpu : MIPS
cpu model : RC32300 V0.0
system type : IDT 79S334
BogoMIPS : 149.91
byteorder : little endian
unaligned accesses : 329630
wait instruction : no
microsecond timers : no
extra interrupt vector : yes
hardware watchpoint : yes
VCED exceptions : not available
VCEI exceptions : not available
/ # uptime
2:07pm up 1 day, 21:07, load average: 0.00, 0.00, 0.00
Quinn
[-- Attachment #2: patch-gdb-stub --]
[-- Type: text/plain, Size: 638 bytes --]
diff -bpBuN -r -X - linux-sgi-cvs/arch/mips/kernel/gdb-stub.c linux+4/arch/mips/kernel/gdb-stub.c
--- linux-sgi-cvs/arch/mips/kernel/gdb-stub.c Sun Dec 3 21:04:09 2000
+++ linux+4/arch/mips/kernel/gdb-stub.c Mon Feb 26 14:56:05 2001
@@ -399,8 +399,11 @@ void set_debug_traps(void)
unsigned char c;
save_and_cli(flags);
- for (ht = hard_trap_info; ht->tt && ht->signo; ht++)
+ for (ht = hard_trap_info; ht->tt && ht->signo; ht++) {
+ /* let the emulator handle adel and ades */
+ if (ht->tt == 4 || ht->tt == 5) continue;
set_except_vector(ht->tt, trap_low);
+ }
/*
* In case GDB is started before us, ack any packets
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch allowing GDB to ignore misaligned data faults
2001-02-28 21:42 ` Patch allowing GDB to ignore misaligned data faults Quinn Jensen
@ 2001-02-28 22:18 ` Jun Sun
2001-03-01 16:04 ` Quinn Jensen
0 siblings, 1 reply; 7+ messages in thread
From: Jun Sun @ 2001-02-28 22:18 UTC (permalink / raw)
To: Quinn Jensen; +Cc: linux-mips
Quinn Jensen wrote:
>
> When using gdb on the kernel, I've found it helpful to allow
> misaligned exceptions to be emulated instead of being
> intercepted by gdb. The following patch does this. But is
> there a better way? Perhaps a config.in option?
>
This does not sound right: this is already fixed long time ago by not
installing traps for exception 4&5. What kernel are you using?
Jun
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Patch allowing GDB to ignore misaligned data faults
2001-02-28 22:18 ` Jun Sun
@ 2001-03-01 16:04 ` Quinn Jensen
0 siblings, 0 replies; 7+ messages in thread
From: Quinn Jensen @ 2001-03-01 16:04 UTC (permalink / raw)
To: jsun; +Cc: linux-mips
jsun@hermes.mvista.com wrote
> This does not sound right: this is already fixed long time ago by not
> installing traps for exception 4&5. What kernel are you using
You're right; I let my patch ferment too long and it rotted.
Quinn
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-03-01 16:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27 15:11 binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ? Steven Liu
2001-02-27 15:11 ` Steven Liu
2001-02-28 12:33 ` Ralf Baechle
2001-02-28 12:33 ` Ralf Baechle
2001-02-28 21:42 ` Patch allowing GDB to ignore misaligned data faults Quinn Jensen
2001-02-28 22:18 ` Jun Sun
2001-03-01 16:04 ` Quinn Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox