From: Jeff Dike <jdike@addtoit.com>
To: Daniel Gryniewicz <dang@gentoo.org>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] missing asm/user.h
Date: Sun, 25 Mar 2007 10:52:32 -0400 [thread overview]
Message-ID: <20070325145232.GB4901@c2.user-mode-linux.org> (raw)
In-Reply-To: <1174793788.5906.16.camel@athena.fprintf.net>
On Sat, Mar 24, 2007 at 11:36:28PM -0400, Daniel Gryniewicz wrote:
> Update: <asm/elf.h> isn't there either, but <sys/user.h> includes
> user_regs_struct, so that's sufficient for this problem.
Hummph, I hope that's true of every other distro that people use UML on.
> The next problem is lack of <asm/page.h>. Most files failing to build
> with it can simply have it removed. I've temporarily replaced PAGE_SIZE
> with sysconf(_SC_PAGESIZE) for now, and we'll see how that works.
Send patches.
BTW, the important thing about PAGE_SIZE in the userspace side of UML
is not that it be the same as sysconf(_SC_PAGESIZE) but that it match
the value of PAGE_SIZE in the kernelspace side. Obviously, these
values will all be the same everywhere that we care about now, but I
can think of one or two situations where it would matter. On an
architecture with a variable page size, the UML kernel can have a
PAGE_SIZE of 64K but the host's sysconf can report a page size of 4K.
In this case, it's important that PAGE_SIZE in UML userspace code be
64K.
So, there's UM_KERN_PAGE_SIZE in kern_constants.h which is derived
from the kernel's PAGE_SIZE and is usable in userspace files. Use
that instead of sysconf().
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-03-25 14:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-24 19:33 [uml-devel] missing asm/user.h Daniel Gryniewicz
2007-03-25 1:27 ` Jeff Dike
2007-03-25 3:06 ` Daniel Gryniewicz
2007-03-25 3:36 ` Daniel Gryniewicz
2007-03-25 14:52 ` Jeff Dike [this message]
2007-03-27 2:36 ` Daniel Gryniewicz
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=20070325145232.GB4901@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=dang@gentoo.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.