Subject: Re: COMPAT_LINUX vsyscall
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 05/02/2005 09:15:37
In article <>,
Pavel Cahyna  <> wrote:
>On Sun, 01 May 2005 23:45:49 -0700, Bill Studenmund wrote:
>> On Sun, May 01, 2005 at 08:48:09PM -0400, Christos Zoulas wrote:
>>> In article <>, David Laight 
>>> <> wrote:
>>> >
>>> >That is mapping data, not code.....
>>> The kernel can map optimized versions of mem*() and str*() that depend
>>> on the processor.
>> And all processes can take advantage of it. While we can play some
>> comparable tricks with conditional library linking (like how we have
>> different libm's on i386 as I understand it), that takes dynamic linking
>> and runtime computation. With this, the kernel figures out what the right
>> page is early in boot, and all processes (that are ours) use it.
>How would the processes know where the functions are?

There are many ways to do this, but the easiest is probably to stuff the
address where they start in setregs().