Commit d361390d authored by Jens Remus's avatar Jens Remus Committed by Vasily Gorbik

s390/vdso: Use macros for annotation of asm functions

Use the macros SYM_FUNC_START() and SYM_FUNC_END() to annotate the
functions in assembly.
Signed-off-by: default avatarJens Remus <jremus@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Acked-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 5cccfc8b
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
* for details. * for details.
*/ */
.macro vdso_func func .macro vdso_func func
.globl __kernel_\func SYM_FUNC_START(__kernel_\func)
.type __kernel_\func,@function
__ALIGN
__kernel_\func:
CFI_STARTPROC CFI_STARTPROC
aghi %r15,-STACK_FRAME_VDSO_OVERHEAD aghi %r15,-STACK_FRAME_VDSO_OVERHEAD
CFI_DEF_CFA_OFFSET (STACK_FRAME_USER_OVERHEAD + STACK_FRAME_VDSO_OVERHEAD) CFI_DEF_CFA_OFFSET (STACK_FRAME_USER_OVERHEAD + STACK_FRAME_VDSO_OVERHEAD)
...@@ -32,7 +29,7 @@ __kernel_\func: ...@@ -32,7 +29,7 @@ __kernel_\func:
CFI_RESTORE 15 CFI_RESTORE 15
br %r14 br %r14
CFI_ENDPROC CFI_ENDPROC
.size __kernel_\func,.-__kernel_\func SYM_FUNC_END(__kernel_\func)
.endm .endm
vdso_func gettimeofday vdso_func gettimeofday
...@@ -41,16 +38,13 @@ vdso_func clock_gettime ...@@ -41,16 +38,13 @@ vdso_func clock_gettime
vdso_func getcpu vdso_func getcpu
.macro vdso_syscall func,syscall .macro vdso_syscall func,syscall
.globl __kernel_\func SYM_FUNC_START(__kernel_\func)
.type __kernel_\func,@function
__ALIGN
__kernel_\func:
CFI_STARTPROC CFI_STARTPROC
svc \syscall svc \syscall
/* Make sure we notice when a syscall returns, which shouldn't happen */ /* Make sure we notice when a syscall returns, which shouldn't happen */
.word 0 .word 0
CFI_ENDPROC CFI_ENDPROC
.size __kernel_\func,.-__kernel_\func SYM_FUNC_END(__kernel_\func)
.endm .endm
vdso_syscall restart_syscall,__NR_restart_syscall vdso_syscall restart_syscall,__NR_restart_syscall
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment