forked from pool/biosdevname
This commit is contained in:
parent
bfd58fff59
commit
b0820d6178
@ -8,14 +8,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__
|
||||||
+ "pushl %%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__
|
||||||
+ "popl %%rbx\n"
|
+ "pop %%rbx\n"
|
||||||
+#else
|
+#else
|
||||||
+ "pop %%ebx\n"
|
+ "pop %%ebx\n"
|
||||||
+#endif
|
+#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user