Skip to contentSkip to conversation

binutils-2.8.1-mips.patch and egcs-1.1.2-mips.patch ?

DISCUSSION Steven Liu 4 participants 5 messages Feb 27, 2001 – Mar 1, 2001 MIPS

lore
Share & tools
lore

Steven Liu

author
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Steven Liu

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

#2 lore raw

Patch allowing GDB to ignore misaligned data faults

In reply to Steven Liu

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

arch/mips/kernel/gdb-stub.c +4 -1
diff -bpBuN -r -X - linux-sgi-cvs/arch/mips/kernel/gdb-stub.c linux+4/arch/mips/kernel/gdb-stub.c
@@ -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
#3 lore raw

Re: Patch allowing GDB to ignore misaligned data faults

Quoted 6 lines · Quinn Jensen

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

#4 lore raw

Re: Patch allowing GDB to ignore misaligned data faults

[email protected] wrote

Quoted 2 lines

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