Skip to content

Commit

Permalink
powerpc: define FUNC_START/FUNC_END
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
antonblanchard authored and herbertx committed Jul 5, 2016
1 parent 27710b8 commit 151f251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/include/asm/ppc_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ GLUE(.,name):

#endif

#define FUNC_START(name) _GLOBAL(name)
#define FUNC_END(name)

/*
* LOAD_REG_IMMEDIATE(rn, expr)
* Loads the value of the constant expression 'expr' into register 'rn'
Expand Down

0 comments on commit 151f251

Please sign in to comment.