From 3c835670ab5f72a4ea2d0db232b1acc07924f186 Mon Sep 17 00:00:00 2001 From: David Howells Date: Wed, 28 Nov 2007 16:22:05 -0800 Subject: FRV: arrange things such that BRA can reach from the trap table Arrange the sections in the FRV arch so that a BRA instruction with a 16-bit displacement can always reach from the trap table to entry.S, tlb-miss.S and break.S. The problem otherwise is that the linker can insert sufficient code between the slots in the trap table and the targets of the branch instructions in those slots that the displacement field in the instruction isn't sufficiently large. This is because the branch targets were in the .text section along with most of the other code in the kernel. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/frv/mm/tlb-miss.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/frv/mm') diff --git a/arch/frv/mm/tlb-miss.S b/arch/frv/mm/tlb-miss.S index 04da67468378..07643482cad2 100644 --- a/arch/frv/mm/tlb-miss.S +++ b/arch/frv/mm/tlb-miss.S @@ -16,7 +16,7 @@ #include #include - .section .text + .section .text.tlbmiss .balign 4 .globl __entry_insn_mmu_miss -- cgit v1.2.3