* [gentoo-commits] gentoo-x86 commit in dev-libs/liboil/files: liboil-0.3.17-amd64-cpuid.patch
@ 2012-10-29 0:56 Alexandre Rostovtsev (tetromino)
0 siblings, 0 replies; only message in thread
From: Alexandre Rostovtsev (tetromino) @ 2012-10-29 0:56 UTC (permalink / raw
To: gentoo-commits
tetromino 12/10/29 00:56:43
Added: liboil-0.3.17-amd64-cpuid.patch
Log:
Add upstream patch to fix CPU detection on amd64. Add prefix keywords (bug #440082, thanks to Christoph Junghans). Remove useless doc USE flag, and install docs in the location where tools like devhelp expect them. Punt .la files, and make static libs optional.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
Revision Changes Path
1.1 dev-libs/liboil/files/liboil-0.3.17-amd64-cpuid.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liboil/files/liboil-0.3.17-amd64-cpuid.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/liboil/files/liboil-0.3.17-amd64-cpuid.patch?rev=1.1&content-type=text/plain
Index: liboil-0.3.17-amd64-cpuid.patch
===================================================================
From 705916007fba0a845229a02dc6474cb523eff150 Mon Sep 17 00:00:00 2001
From: David Schleef <ds@schleef.org>
Date: Tue, 20 Jul 2010 21:05:26 +0000
Subject: x86: Fix cpuid function on x86-64
Fixes: #28956.
---
diff --git a/liboil/liboilcpu-x86.c b/liboil/liboilcpu-x86.c
index e7a1978..ef4d3f2 100644
--- a/liboil/liboilcpu-x86.c
+++ b/liboil/liboilcpu-x86.c
@@ -162,13 +162,10 @@ get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
static void
get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
{
+ *a = op;
__asm__ (
- " pushq %%rbx\n"
" cpuid\n"
- " mov %%ebx, %%esi\n"
- " popq %%rbx\n"
- : "=a" (*a), "=S" (*b), "=c" (*c), "=d" (*d)
- : "0" (op));
+ : "+a" (*a), "=b" (*b), "=c" (*c), "=d" (*d));
}
#endif
@@ -185,7 +182,7 @@ oil_cpu_detect_cpuid (void)
{
uint32_t eax, ebx, ecx, edx;
uint32_t level;
- char vendor[13] = { 0 };
+ char vendor[13+4] = { 0 };
int ret;
oil_fault_check_enable ();
--
cgit v0.9.0.2-2-gbebe
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-29 0:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 0:56 [gentoo-commits] gentoo-x86 commit in dev-libs/liboil/files: liboil-0.3.17-amd64-cpuid.patch Alexandre Rostovtsev (tetromino)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox