This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: ppc64 vDSO update
- From: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- To: libc-alpha at sources dot redhat dot com
- Cc: linuxppc64-dev <linuxppc64-dev at ozlabs dot org>, Paul Mackerras <paulus at samba dot org>
- Date: Thu, 11 Nov 2004 00:10:21 +1100
- Subject: Re: ppc64 vDSO update
- References: <1100059748.10262.292.camel@gaston>
.../...
> - Added a new export to userland: __kernel_sync_dicache (prototype below) that
> does the dcache flush / icache invalidate necessary to turn data into executable,
> I also added the dynamic symbol patching mecanism I wrote about earlier so that
> the "__kernel_sync_dicache" symbol is automatically modified by the kernel to
> point to the right version based on the CPU you are running on. At this point,
> there are 2 implementations, a generic one and a POWER5 one. Ultimately, this
> mecanism will be used for a lot more "alternatives" once we get more functions
> in the vDSO, most notably locks.
> .../...
>
> I forgot to describe the prototype of that new function, here it is:
>
> void __kernel_sync_dicache(unsigned long start, unsigned long end)
>
> Flushes the data cache & invalidate the instruction cache for the
> provided range [start, end[
>
> Ben.
>
>
>