[Liboil-commit] 2 commits - README liboil/liboilcpu-x86.c

David Schleef ds at kemper.freedesktop.org
Tue Jul 20 14:06:06 PDT 2010


 README                 |   13 +++++++++++++
 liboil/liboilcpu-x86.c |    9 +++------
 2 files changed, 16 insertions(+), 6 deletions(-)

New commits:
commit 705916007fba0a845229a02dc6474cb523eff150
Author: David Schleef <ds at schleef.org>
Date:   Tue Jul 20 14:05:26 2010 -0700

    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 ();
commit 04b154aa118c0fdf244932dadc3d085f6290db7a
Author: David Schleef <ds at schleef.org>
Date:   Thu Feb 4 13:40:40 2010 -0800

    Add warning about no new development

diff --git a/README b/README
index 8f03bd0..b5bb753 100644
--- a/README
+++ b/README
@@ -1,4 +1,17 @@
 
+***** WARNING *****
+
+Liboil is now in maintenence-only mode.  No new features will
+be added, and bugs will be fixed according to their severity and
+availablility of patches.
+
+Users of liboil are recommended to switch to Orc
+(http://code.entropywave.com/projects/orc/).  Please contact
+David Schleef <ds at schleef.org> about converting liboil functions
+to Orc code -- in many cases this work has already been done.
+
+***** WARNING *****
+
 
 Requirements
 ============


More information about the Liboil-commit mailing list