powerpc: Non relocatable system call doesn't need a trampoline
authorAnton Blanchard <anton@samba.org>
Tue, 26 May 2015 05:46:55 +0000 (15:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2015 03:26:47 +0000 (13:26 +1000)
We need to use a trampoline when using LOAD_HANDLER(), because the
destination needs to be in the first 64kB. An absolute branch has
no such limitations, so just jump there.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/exceptions-64s.S

index cf8c1b55e6c8643e0bbe4c1fc7db7972460256d4..0a0399c2af119c1c63efe094b1404f3250045769 100644 (file)
@@ -79,7 +79,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_REAL_LE)                                \
        mfspr   r12,SPRN_SRR1 ;                                 \
        li      r10,MSR_RI ;                                    \
        mtmsrd  r10,1 ;                 /* Set RI (EE=0) */     \
-       b       system_call_entry ;
+       b       system_call_common ;
 #endif
 
 /*