From a86bf478a76f28f85be7e3bc09913fabd9bf294d2138f4ecf8e6031096e9334a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 21 Feb 2015 23:07:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/biosdevname?expand=0&rev=41 --- biosdevname-pic.patch | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/biosdevname-pic.patch b/biosdevname-pic.patch index 2bc98e6..e639834 100644 --- a/biosdevname-pic.patch +++ b/biosdevname-pic.patch @@ -1,16 +1,24 @@ -Index: biosdevname-0.5.0/src/bios_dev_name.c +Index: biosdevname-0.6.1/src/bios_dev_name.c =================================================================== ---- biosdevname-0.5.0.orig/src/bios_dev_name.c -+++ biosdevname-0.5.0/src/bios_dev_name.c -@@ -114,10 +114,13 @@ static u_int32_t +--- biosdevname-0.6.1.orig/src/bios_dev_name.c ++++ biosdevname-0.6.1/src/bios_dev_name.c +@@ -114,10 +114,21 @@ static u_int32_t cpuid (u_int32_t eax, u_int32_t ecx) { asm volatile ( - "xor %%ebx, %%ebx; cpuid" ++#ifdef x86_64 ++ "pushl %%rbx\n" ++#else + "push %%ebx\n" ++#endif + "xor %%ebx, %%ebx\n" + "cpuid\n" ++#ifdef x86_64 ++ "popl %%rbx\n" ++#else + "pop %%ebx\n" ++#endif : "=a" (eax), "=c" (ecx) : "a" (eax) - : "%ebx", "%edx");