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: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- To: Steve Munroe <sjmunroe at us dot ibm dot com>
- Cc: libc-alpha at sources dot redhat dot com, Roland McGrath <roland at redhat dot com>
- Date: Mon, 02 May 2005 10:15:26 +1000
- Subject: Re: [PATCH] ppc vdso, A working gettimeofday
- References: <OF1E86AA76.0337DCBE-ON86256FF4.007D0F46-86256FF4.007DA75D@us.ibm.com>
On Sun, 2005-05-01 at 17:52 -0500, Steve Munroe wrote:
>
>
>
>
> 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...
Heh, don't worry, I know it's a "working kludge", I'm just starting the
discussion on what we want to do next ! :)
Ben.