aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc/init-first.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-01-15 12:50:46 -0600
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-01-18 07:44:38 -0600
commit471a1672d4d55124de4db8273829f96cc14d424a (patch)
treea2f709ff6e0f6f44b9eb17547dd456f7d5e587c5 /sysdeps/unix/sysv/linux/powerpc/init-first.c
parentf7bff1ed9608816c3936f2107aa0831d90c70358 (diff)
downloadglibc-471a1672d4d55124de4db8273829f96cc14d424a.tar
glibc-471a1672d4d55124de4db8273829f96cc14d424a.tar.gz
glibc-471a1672d4d55124de4db8273829f96cc14d424a.tar.bz2
glibc-471a1672d4d55124de4db8273829f96cc14d424a.zip
PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
In order for the __kernel_get_tbfreq vDSO call to work the INTERNAL_VSYSCALL_NCS macro needed to be updated to prevent it from assuming an integer return type (since the timebase frequency is a 64-bit value) by specifying the type of the return type as a macro parameter. The macro then specifically declares the return value as a 'register' (or implied pair) of the denoted type. The compiler is then informed that this register (or implied pair) is to be used for the return value.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/init-first.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/init-first.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/init-first.c b/sysdeps/unix/sysv/linux/powerpc/init-first.c
index 195d0303be..204c0c60a4 100644
--- a/sysdeps/unix/sysv/linux/powerpc/init-first.c
+++ b/sysdeps/unix/sysv/linux/powerpc/init-first.c
@@ -41,7 +41,7 @@ _libc_vdso_platform_setup (void)
__vdso_clock_getres = _dl_vdso_vsym ("__kernel_clock_getres", &linux2615);
- __vdso_get_tbfreq = _dl_vdso_vsym ("__kernel_vdso_get_tbfreq", &linux2615);
+ __vdso_get_tbfreq = _dl_vdso_vsym ("__kernel_get_tbfreq", &linux2615);
__vdso_getcpu = _dl_vdso_vsym ("__kernel_getcpu", &linux2615);
}