Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031037AbbD1Txq (ORCPT ); Tue, 28 Apr 2015 15:53:46 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:62706 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030658AbbD1Txl (ORCPT ); Tue, 28 Apr 2015 15:53:41 -0400 Subject: [PATCH] MIPS64: R6: R2 emulation bugfix From: Leonid Yegoshin To: , , , , Date: Tue, 28 Apr 2015 12:53:35 -0700 Message-ID: <20150428195335.11229.4516.stgit@ubuntu-yegoshin> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.20.3.79] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5759 Lines: 208 Error recovery pointers for fixups was improperly set as ".word" which is unsuitable for MIPS64. Replaced by __stringify(PTR) Signed-off-by: Leonid Yegoshin --- arch/mips/kernel/mips-r2-to-r6-emul.c | 104 +++++++++++++++++---------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/arch/mips/kernel/mips-r2-to-r6-emul.c b/arch/mips/kernel/mips-r2-to-r6-emul.c index f2977f00911b..c6f079f8f3dc 100644 --- a/arch/mips/kernel/mips-r2-to-r6-emul.c +++ b/arch/mips/kernel/mips-r2-to-r6-emul.c @@ -1250,10 +1250,10 @@ fpu_emul: " j 10b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1325,10 +1325,10 @@ fpu_emul: " j 10b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1396,10 +1396,10 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1466,10 +1466,10 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1581,14 +1581,14 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" - " .word 5b,8b\n" - " .word 6b,8b\n" - " .word 7b,8b\n" - " .word 0b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" + __stringify(PTR) " 5b,8b\n" + __stringify(PTR) " 6b,8b\n" + __stringify(PTR) " 7b,8b\n" + __stringify(PTR) " 0b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1700,14 +1700,14 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" - " .word 5b,8b\n" - " .word 6b,8b\n" - " .word 7b,8b\n" - " .word 0b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" + __stringify(PTR) " 5b,8b\n" + __stringify(PTR) " 6b,8b\n" + __stringify(PTR) " 7b,8b\n" + __stringify(PTR) " 0b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1819,14 +1819,14 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" - " .word 5b,8b\n" - " .word 6b,8b\n" - " .word 7b,8b\n" - " .word 0b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" + __stringify(PTR) " 5b,8b\n" + __stringify(PTR) " 6b,8b\n" + __stringify(PTR) " 7b,8b\n" + __stringify(PTR) " 0b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1937,14 +1937,14 @@ fpu_emul: " j 9b\n" " .previous\n" " .section __ex_table,\"a\"\n" - " .word 1b,8b\n" - " .word 2b,8b\n" - " .word 3b,8b\n" - " .word 4b,8b\n" - " .word 5b,8b\n" - " .word 6b,8b\n" - " .word 7b,8b\n" - " .word 0b,8b\n" + __stringify(PTR) " 1b,8b\n" + __stringify(PTR) " 2b,8b\n" + __stringify(PTR) " 3b,8b\n" + __stringify(PTR) " 4b,8b\n" + __stringify(PTR) " 5b,8b\n" + __stringify(PTR) " 6b,8b\n" + __stringify(PTR) " 7b,8b\n" + __stringify(PTR) " 0b,8b\n" " .previous\n" " .set pop\n" : "+&r"(rt), "=&r"(rs), @@ -1999,7 +1999,7 @@ fpu_emul: "j 2b\n" ".previous\n" ".section __ex_table,\"a\"\n" - ".word 1b, 3b\n" + __stringify(PTR) " 1b,3b\n" ".previous\n" : "=&r"(res), "+&r"(err) : "r"(vaddr), "i"(SIGSEGV) @@ -2057,7 +2057,7 @@ fpu_emul: "j 2b\n" ".previous\n" ".section __ex_table,\"a\"\n" - ".word 1b, 3b\n" + __stringify(PTR) " 1b,3b\n" ".previous\n" : "+&r"(res), "+&r"(err) : "r"(vaddr), "i"(SIGSEGV)); @@ -2118,7 +2118,7 @@ fpu_emul: "j 2b\n" ".previous\n" ".section __ex_table,\"a\"\n" - ".word 1b, 3b\n" + __stringify(PTR) " 1b,3b\n" ".previous\n" : "=&r"(res), "+&r"(err) : "r"(vaddr), "i"(SIGSEGV) @@ -2181,7 +2181,7 @@ fpu_emul: "j 2b\n" ".previous\n" ".section __ex_table,\"a\"\n" - ".word 1b, 3b\n" + __stringify(PTR) " 1b,3b\n" ".previous\n" : "+&r"(res), "+&r"(err) : "r"(vaddr), "i"(SIGSEGV)); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/