From: "H. Peter Anvin" <hpa@zytor.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: Specific processing during user space header generation
Date: Fri, 11 Feb 2011 12:08:14 -0800 [thread overview]
Message-ID: <4D55972E.90506@zytor.com> (raw)
In-Reply-To: <20110211191430.GA6227@merkur.ravnborg.org>
On 02/11/2011 11:14 AM, Sam Ravnborg wrote:
>
> The purpose of headers_install is to install the existing kernel headers
> and during the installation process do some minimal adjustments to make
> then suit userspace consumption.
>
> What you suggest smells like something else - care to explain what
> you have in mind?
>
I am working with H.J. Lu on an experimental native 32-bit ABI for
x86-64. As a result, we are adding an <asm/unistd_x32.h> for new system
call numbers.
Now, the kernel needs to use both <asm/unistd_64.h> and
<asm/unistd_x32.h>, since as far as the kernel are concerned they are
both 64-bit system calls. As such, the latter contains symbols like:
__NR_x32_ioctl
... however, when used in user space, we want it to look like
__NR_ioctl
... just like any other ABI.
Incidentally we have a similar situation with the i386 ABI, but that one
is sort of backwards -- since unistd_32.h is also used by native 32
bits, we can't just make the transformation for userspace there.
The alternative, of course (which would also work for the native 32 bit
case, now when I think about it) is for the human-written file to be the
user space version, and use a script to generate the kernel version.
-hpa
prev parent reply other threads:[~2011-02-11 20:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 0:06 Specific processing during user space header generation H. Peter Anvin
2011-02-10 5:54 ` Sam Ravnborg
2011-02-10 23:55 ` H. Peter Anvin
2011-02-11 15:13 ` Michal Marek
2011-02-11 19:14 ` Sam Ravnborg
2011-02-11 20:08 ` H. Peter Anvin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D55972E.90506@zytor.com \
--to=hpa@zytor.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox