Patch "MIPS: Fix BUILD_ROLLBACK_PROLOGUE for microMIPS" has been added to the 4.4-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    MIPS: Fix BUILD_ROLLBACK_PROLOGUE for microMIPS

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mips-fix-build_rollback_prologue-for-micromips.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit df536f17f3083c55d06cde985eae4a4f05dee89b
Author: Paul Burton <paulburton@xxxxxxxxxx>
Date:   Fri Aug 19 18:15:40 2016 +0100

    MIPS: Fix BUILD_ROLLBACK_PROLOGUE for microMIPS
    
    [ Upstream commit 1eefcbc89cf3a8e252e5aeb25825594699b47360 ]
    
    When the kernel is built for microMIPS, branches targets need to be
    known to be microMIPS code in order to result in bit 0 of the PC being
    set. The branch target in the BUILD_ROLLBACK_PROLOGUE macro was simply
    the end of the macro, which may be pointing at padding rather than at
    code. This results in recent enough GNU linkers complaining like so:
    
        mips-img-linux-gnu-ld: arch/mips/built-in.o: .text+0x3e3c: Unsupported branch between ISA modes.
        mips-img-linux-gnu-ld: final link failed: Bad value
        Makefile:936: recipe for target 'vmlinux' failed
        make: *** [vmlinux] Error 1
    
    Fix this by changing the branch target to be the start of the
    appropriate handler, skipping over any padding.
    
    Signed-off-by: Paul Burton <paul.burton@xxxxxxxxxx>
    Cc: linux-mips@xxxxxxxxxxxxxx
    Patchwork: https://patchwork.linux-mips.org/patch/14019/
    Signed-off-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S
index 7ffd158de76e5..1b837d6f73deb 100644
--- a/arch/mips/kernel/genex.S
+++ b/arch/mips/kernel/genex.S
@@ -142,9 +142,8 @@ LEAF(__r4k_wait)
 	PTR_LA	k1, __r4k_wait
 	ori	k0, 0x1f	/* 32 byte rollback region */
 	xori	k0, 0x1f
-	bne	k0, k1, 9f
+	bne	k0, k1, \handler
 	MTC0	k0, CP0_EPC
-9:
 	.set pop
 	.endm
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux