Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 127892 Details for
Bug 188624
sys-apps/lshw-02.11.01b - version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lshw-02.09b-cpuid-PIC.patch
lshw-02.09b-cpuid-PIC.patch (text/plain), 842 bytes, created by
Daniel Pielmeier
on 2007-08-12 18:50:51 UTC
(
hide
)
Description:
lshw-02.09b-cpuid-PIC.patch
Filename:
MIME Type:
Creator:
Daniel Pielmeier
Created:
2007-08-12 18:50:51 UTC
Size:
842 bytes
patch
obsolete
>--- lshw-B.02.11.01.orig/src/core/cpuid.cc 2007-08-12 19:36:13.000000000 +0200 >+++ lshw-B.02.11.01/src/core/cpuid.cc 2007-08-12 19:47:31.000000000 +0200 >@@ -72,9 +72,6 @@ > > #ifdef __i386__ > >-#define cpuid_up(in,a,b,c,d)\ >-asm("cpuid": "=a" (a), "=b" (b), "=c" (c), "=d" (d) : "a" (in)); >- > static void cpuid(int cpunumber, > unsigned long idx, > unsigned long &eax, >@@ -100,7 +97,21 @@ > edx = (*(unsigned long *) (buffer + 12)); > } > else >- cpuid_up(idx, eax, ebx, ecx, edx); >+ asm( >+#ifdef __PIC__ >+ "movl %%ebx,%%edi\n" >+ "cpuid\n" >+ "movl %%ebx,%3\n" >+ "movl %%edi,%%ebx\n" >+ : "=a" (eax), "=c" (ecx), "=d" (edx), "=m" (ebx) >+ : "a" (idx) >+ : "edi" >+#else >+ "cpuid\n" >+ : "=a" (eax), "=c" (ecx), "=d" (edx), "=b" (ebx) >+ : "a" (idx) >+#endif >+ ); > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 188624
:
127888
|
127890
| 127892