X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fprocessor.h;h=8bd7aa959385d01d33c530526609e7302cf97921;hb=abf914208a1e120446ea4f9bc26406bd3a4579e1;hp=7bd4796f1236c5efe6f7c881ab0aa18a141a1fd8;hpb=e3ee3b78f83688a0ae4315e8be71b2eac559904a;p=linux-2.6 diff --git a/include/asm-ppc64/processor.h b/include/asm-ppc64/processor.h index 7bd4796f12..8bd7aa9593 100644 --- a/include/asm-ppc64/processor.h +++ b/include/asm-ppc64/processor.h @@ -311,6 +311,20 @@ name: \ .type GLUE(.,name),@function; \ GLUE(.,name): +#define _KPROBE(name) \ + .section ".kprobes.text","a"; \ + .align 2 ; \ + .globl name; \ + .globl GLUE(.,name); \ + .section ".opd","aw"; \ +name: \ + .quad GLUE(.,name); \ + .quad .TOC.@tocbase; \ + .quad 0; \ + .previous; \ + .type GLUE(.,name),@function; \ +GLUE(.,name): + #define _STATIC(name) \ .section ".text"; \ .align 2 ; \