diff options
author | Anton Blanchard <anton@samba.org> | 2016-07-01 08:19:44 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-05 23:05:16 +0800 |
commit | 151f25112ff7befc134ed3fc58b0ff8792b3169e (patch) | |
tree | 1eeddf4aa5efa636b528efa568c795cc85420a2c /arch/powerpc/include/asm/ppc_asm.h | |
parent | 27710b8ea3defcbd7d340dbd0423d911b4eb7c4f (diff) | |
download | op-kernel-dev-151f25112ff7befc134ed3fc58b0ff8792b3169e.zip op-kernel-dev-151f25112ff7befc134ed3fc58b0ff8792b3169e.tar.gz |
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 <anton@samba.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/powerpc/include/asm/ppc_asm.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc_asm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index 2b31632..051af61 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h @@ -286,6 +286,9 @@ n: #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' |