From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5980] Don't require linux/auxvec.h, which isn't always installed with libc .
Date: Thu, 11 Dec 2008 19:12:59 +0000 [thread overview]
Message-ID: <E1LAqy3-0001BE-E3@cvs.savannah.gnu.org> (raw)
Revision: 5980
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5980
Author: malc
Date: 2008-12-11 19:12:59 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Don't require linux/auxvec.h, which isn't always installed with libc.
I'm cross-compiling, and linux/auxvec.h was not installed with my glibc
headers. How about this:
Don't require linux/auxvec.h, which isn't always installed with libc.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Modified Paths:
--------------
trunk/cache-utils.c
Modified: trunk/cache-utils.c
===================================================================
--- trunk/cache-utils.c 2008-12-11 19:12:25 UTC (rev 5979)
+++ trunk/cache-utils.c 2008-12-11 19:12:59 UTC (rev 5980)
@@ -16,18 +16,21 @@
}
#elif defined __linux__
-#include <linux/auxvec.h>
+#define QEMU_AT_NULL 0
+#define QEMU_AT_DCACHEBSIZE 19
+#define QEMU_AT_ICACHEBSIZE 20
+
static void ppc_init_cacheline_sizes(char **envp)
{
unsigned long *auxv;
while (*envp++);
- for (auxv = (unsigned long *) envp; *auxv != AT_NULL; auxv += 2) {
+ for (auxv = (unsigned long *) envp; *auxv != QEMU_AT_NULL; auxv += 2) {
switch (*auxv) {
- case AT_DCACHEBSIZE: qemu_cache_conf.dcache_bsize = auxv[1]; break;
- case AT_ICACHEBSIZE: qemu_cache_conf.icache_bsize = auxv[1]; break;
+ case QEMU_AT_DCACHEBSIZE: qemu_cache_conf.dcache_bsize = auxv[1]; break
+ case QEMU_AT_ICACHEBSIZE: qemu_cache_conf.icache_bsize = auxv[1]; break
default: break;
}
}
reply other threads:[~2008-12-11 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=E1LAqy3-0001BE-E3@cvs.savannah.gnu.org \
--to=av1474@comtv.ru \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).