Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anton Blanchard and committed by
Herbert Xu
151f2511 27710b8e

+3
+3
arch/powerpc/include/asm/ppc_asm.h
··· 286 286 287 287 #endif 288 288 289 + #define FUNC_START(name) _GLOBAL(name) 290 + #define FUNC_END(name) 291 + 289 292 /* 290 293 * LOAD_REG_IMMEDIATE(rn, expr) 291 294 * Loads the value of the constant expression 'expr' into register 'rn'