SHA256
1
0
forked from pool/biosdevname
Marcus Meissner 2015-02-21 23:16:56 +00:00 committed by Git OBS Bridge
parent 89ca5d4b7c
commit dd6c94e3e4

View File

@ -7,14 +7,14 @@ Index: biosdevname-0.6.1/src/bios_dev_name.c
{ {
asm volatile ( asm volatile (
- "xor %%ebx, %%ebx; cpuid" - "xor %%ebx, %%ebx; cpuid"
+#ifdef x86_64 +#ifdef __x86_64__
+ "push %%rbx\n" + "push %%rbx\n"
+#else +#else
+ "push %%ebx\n" + "push %%ebx\n"
+#endif +#endif
+ "xor %%ebx, %%ebx\n" + "xor %%ebx, %%ebx\n"
+ "cpuid\n" + "cpuid\n"
+#ifdef x86_64 +#ifdef __x86_64__
+ "pop %%rbx\n" + "pop %%rbx\n"
+#else +#else
+ "pop %%ebx\n" + "pop %%ebx\n"