linux-mips
[Top] [All Lists]

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

To: linux-mips@oss.sgi.com
Subject: a small patch for latest (2.4.15+) unaligned.c
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Wed, 05 Dec 2001 17:12:32 +0900 (JST)
Cc: ralf@oss.sgi.com
Organization: TOSHIBA Personal Computer System Corporation
Sender: owner-linux-mips@oss.sgi.com
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

<Prev in Thread] Current Thread [Next in Thread>