]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/parisc/kernel/entry.S
Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
[mv-sheeva.git] / arch / parisc / kernel / entry.S
index 4e9dd15e076cf36c7e65e30c63a4855b7574a44a..ae3e70cd1e14e4acf2da03717d77d0b9ea0d7faa 100644 (file)
@@ -2185,6 +2185,33 @@ syscall_do_resched:
 ENDPROC(syscall_exit)
 
 
+#ifdef CONFIG_FUNCTION_TRACER
+       .import ftrace_function_trampoline,code
+ENTRY(_mcount)
+       copy    %r3, %arg2
+       b       ftrace_function_trampoline
+       nop
+ENDPROC(_mcount)
+
+ENTRY(return_to_handler)
+       load32  return_trampoline, %rp
+       copy    %ret0, %arg0
+       copy    %ret1, %arg1
+       b       ftrace_return_to_handler
+       nop
+return_trampoline:
+       copy    %ret0, %rp
+       copy    %r23, %ret0
+       copy    %r24, %ret1
+
+.globl ftrace_stub
+ftrace_stub:
+       bv      %r0(%rp)
+       nop
+ENDPROC(return_to_handler)
+#endif /* CONFIG_FUNCTION_TRACER */
+
+
 get_register:
        /*
         * get_register is used by the non access tlb miss handlers to