]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: Make the vDSO functions set error code (#2)
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 16 Nov 2005 02:54:32 +0000 (13:54 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Nov 2005 03:05:11 +0000 (14:05 +1100)
commita4daa075e4cdc4d6236398dbe30e48ada466f89f
tree1bdc54e617fc209925f33118f414ce0a4ebb62ac
parentac96172d810c0afedaa121cf7bffb8ebb2bf94a7
[PATCH] powerpc: Make the vDSO functions set error code (#2)

The vDSO functions should have the same calling convention as a syscall.
Unfortunately, they currently don't set the cr0.so bit which is used to
indicate an error. This patch makes them clear this bit unconditionally
since all functions currently succeed. The syscall fallback done by some
of them will eventually override this if the syscall fails.

This also changes the symbol version of all vdso exports to make sure
glibc can differenciate between old and fixed calls for existing ones
like __kernel_gettimeofday.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/vdso32/cacheflush.S
arch/powerpc/kernel/vdso32/datapage.S
arch/powerpc/kernel/vdso32/gettimeofday.S
arch/powerpc/kernel/vdso64/cacheflush.S
arch/powerpc/kernel/vdso64/datapage.S
arch/powerpc/kernel/vdso64/gettimeofday.S
include/asm-powerpc/vdso.h