forked from pool/biosdevname
This commit is contained in:
@@ -7,14 +7,14 @@ Index: biosdevname-0.6.1/src/bios_dev_name.c
|
||||
{
|
||||
asm volatile (
|
||||
- "xor %%ebx, %%ebx; cpuid"
|
||||
+#ifdef x86_64
|
||||
+#ifdef __x86_64__
|
||||
+ "push %%rbx\n"
|
||||
+#else
|
||||
+ "push %%ebx\n"
|
||||
+#endif
|
||||
+ "xor %%ebx, %%ebx\n"
|
||||
+ "cpuid\n"
|
||||
+#ifdef x86_64
|
||||
+#ifdef __x86_64__
|
||||
+ "pop %%rbx\n"
|
||||
+#else
|
||||
+ "pop %%ebx\n"
|
||||
|
Reference in New Issue
Block a user