gdb bus error for unaligned access
Ralf,
This is the long-overdue patch for kgdb. It gets rid of "BUS signal" for unaligned accesses in kgdb mode.
Jun
diff -Nru linux/arch/mips/kernel/gdb-stub.c.origlinux/arch/mips/kernel/gdb-stub.c
arch/mips/kernel/gdb-stub.c Thu Oct 26 19:05:07 2000 renamed from arch/mips/kernel/gdb-stub.c.orig Wed Oct 25 11:08:20 2000 +0 -0
@@ -320,8 +320,9 @@ unsigned char tt; /* Trap type code for MIPS R3xxx
and R4xxx */
unsigned char signo; /* Signal that we map this trap
into */
} hard_trap_info[] = {
- { 4, SIGBUS }, /* address error (load) */
- { 5, SIGBUS }, /* address error (store) */
+/* [jsun] kernel emulates unaligned access */
+/* { 4, SIGBUS }, */ /* address error (load) */
+/* { 5, SIGBUS }, */ /* address error (store) */
{ 6, SIGBUS }, /* instruction bus error */
{ 7, SIGBUS }, /* data bus error */
{ 9, SIGTRAP }, /* break */