diff options
Diffstat (limited to 'include/asm-powerpc/ppc_asm.h')
-rw-r--r-- | include/asm-powerpc/ppc_asm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-powerpc/ppc_asm.h b/include/asm-powerpc/ppc_asm.h index 65325721446d..2dbd4e7884fa 100644 --- a/include/asm-powerpc/ppc_asm.h +++ b/include/asm-powerpc/ppc_asm.h | |||
@@ -155,6 +155,20 @@ name: \ | |||
155 | .type GLUE(.,name),@function; \ | 155 | .type GLUE(.,name),@function; \ |
156 | GLUE(.,name): | 156 | GLUE(.,name): |
157 | 157 | ||
158 | #define _INIT_GLOBAL(name) \ | ||
159 | .section ".text.init.refok"; \ | ||
160 | .align 2 ; \ | ||
161 | .globl name; \ | ||
162 | .globl GLUE(.,name); \ | ||
163 | .section ".opd","aw"; \ | ||
164 | name: \ | ||
165 | .quad GLUE(.,name); \ | ||
166 | .quad .TOC.@tocbase; \ | ||
167 | .quad 0; \ | ||
168 | .previous; \ | ||
169 | .type GLUE(.,name),@function; \ | ||
170 | GLUE(.,name): | ||
171 | |||
158 | #define _KPROBE(name) \ | 172 | #define _KPROBE(name) \ |
159 | .section ".kprobes.text","a"; \ | 173 | .section ".kprobes.text","a"; \ |
160 | .align 2 ; \ | 174 | .align 2 ; \ |
@@ -195,6 +209,10 @@ GLUE(.,name): | |||
195 | 209 | ||
196 | #else /* 32-bit */ | 210 | #else /* 32-bit */ |
197 | 211 | ||
212 | #define _ENTRY(n) \ | ||
213 | .globl n; \ | ||
214 | n: | ||
215 | |||
198 | #define _GLOBAL(n) \ | 216 | #define _GLOBAL(n) \ |
199 | .text; \ | 217 | .text; \ |
200 | .stabs __stringify(n:F-1),N_FUN,0,0,n;\ | 218 | .stabs __stringify(n:F-1),N_FUN,0,0,n;\ |