Skip to content

Commit 151f251

Browse files
antonblanchardherbertx
authored andcommitted
powerpc: define FUNC_START/FUNC_END
gcc provides FUNC_START/FUNC_END macros to help with creating assembly functions. Mirror these in the kernel so we can more easily share code between userspace and the kernel. FUNC_END is just a stub since we don't currently annotate the end of kernel functions. It might make sense to do a wholesale search and replace, but for now just create a couple of defines. Signed-off-by: Anton Blanchard <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 27710b8 commit 151f251

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/include/asm/ppc_asm.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ GLUE(.,name):
286286

287287
#endif
288288

289+
#define FUNC_START(name) _GLOBAL(name)
290+
#define FUNC_END(name)
291+
289292
/*
290293
* LOAD_REG_IMMEDIATE(rn, expr)
291294
* Loads the value of the constant expression 'expr' into register 'rn'

0 commit comments

Comments
 (0)