This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] ppc vdso, A working gettimeofday
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Cc: libc-alpha at sources dot redhat dot com, Roland McGrath <roland at redhat dot com>
- Date: Sun, 1 May 2005 17:52:28 -0500
- Subject: Re: [PATCH] ppc vdso, A working gettimeofday
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote on 04/30/2005
07:23:49 PM:
>
> You go through the burden of setting up a descriptor and calling through
> it, which means unnecessary TOC loads etc... Best here is probably to
> write __gettimeofday() entirely in assembly and to do a simpler pointer
> call (or alternatively, just use an inline asm for the call itself, but
> that is probably still overkill). The vDSO case doesn't even need a
> stackframe to be built
>
What part of working kludge don't you understand? ;-)
Yes I could do that but I wanted do demonstrate the general cross platform
case. I think that I have already demonstrated my ability to write
assembler...
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center