a small patch for latest (2.4.15+) unaligned.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The latest arch/mips/kernel/unaligned.c loses some jump instructions
in .fixup section.  Here is a patch to fix it.  This patch is created
with linux_2_4 branch but can be applied to MAIN trunk also.


--- linux-sgi-cvs/arch/mips/kernel/unaligned.c	Tue Dec  4 11:40:12 2001
+++ linux.new/arch/mips/kernel/unaligned.c	Wed Dec  5 17:02:57 2001
@@ -217,6 +217,7 @@
 			"3:\t.set\tat\n\t"
 			".section\t.fixup,\"ax\"\n\t"
 			"4:\tli\t%1, %3\n\t"
+			"j\t3b\n\t"
 			".previous\n\t"
 			".section\t__ex_table,\"a\"\n\t"
 			STR(PTR)"\t1b, 4b\n\t"
@@ -256,6 +257,7 @@
 			"3:\n\t"
 			".section\t.fixup,\"ax\"\n\t"
 			"4:\tli\t%0, %3\n\t"
+			"j\t3b\n\t"
 			".previous\n\t"
 			".section\t__ex_table,\"a\"\n\t"
 			STR(PTR)"\t1b, 4b\n\t"
@@ -283,6 +285,7 @@
 			"3:\n\t"
 			".section\t.fixup,\"ax\"\n\t"
 			"4:\tli\t%0, %3\n\t"
+			"j\t3b\n\t"
 			".previous\n\t"
 			".section\t__ex_table,\"a\"\n\t"
 			STR(PTR)"\t1b, 4b\n\t"
---
Atsushi Nemoto

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux