Wed Aug 17 13:13:00 2005 Søren Sandmann <sandmann@redhat.com>
Make asm labels local. Bug 4073, patch from Diego Pettenò.
This commit is contained in:
parent
ad7f2fc673
commit
f2f6820c3f
|
@ -2315,7 +2315,7 @@ static unsigned int detectCPUFeatures(void) {
|
||||||
"pop %%eax\n"
|
"pop %%eax\n"
|
||||||
"mov $0x0, %%edx\n"
|
"mov $0x0, %%edx\n"
|
||||||
"xor %%ebx, %%eax\n"
|
"xor %%ebx, %%eax\n"
|
||||||
"jz skip\n"
|
"jz 1\n"
|
||||||
|
|
||||||
"mov $0x00000000, %%eax\n"
|
"mov $0x00000000, %%eax\n"
|
||||||
"cpuid\n"
|
"cpuid\n"
|
||||||
|
@ -2324,7 +2324,7 @@ static unsigned int detectCPUFeatures(void) {
|
||||||
"mov %%ecx, %3\n"
|
"mov %%ecx, %3\n"
|
||||||
"mov $0x00000001, %%eax\n"
|
"mov $0x00000001, %%eax\n"
|
||||||
"cpuid\n"
|
"cpuid\n"
|
||||||
"skip:\n"
|
"1:\n"
|
||||||
"pop %%ebx\n"
|
"pop %%ebx\n"
|
||||||
"mov %%edx, %0\n"
|
"mov %%edx, %0\n"
|
||||||
: "=r" (result),
|
: "=r" (result),
|
||||||
|
@ -2355,10 +2355,10 @@ static unsigned int detectCPUFeatures(void) {
|
||||||
"cpuid\n"
|
"cpuid\n"
|
||||||
"xor %%edx, %%edx\n"
|
"xor %%edx, %%edx\n"
|
||||||
"cmp $0x1, %%eax\n"
|
"cmp $0x1, %%eax\n"
|
||||||
"jge skip2\n"
|
"jge 2\n"
|
||||||
"mov $0x80000001, %%eax\n"
|
"mov $0x80000001, %%eax\n"
|
||||||
"cpuid\n"
|
"cpuid\n"
|
||||||
"skip2:\n"
|
"2:\n"
|
||||||
"mov %%edx, %0\n"
|
"mov %%edx, %0\n"
|
||||||
"pop %%ebx\n"
|
"pop %%ebx\n"
|
||||||
: "=r" (result)
|
: "=r" (result)
|
||||||
|
|
Loading…
Reference in New Issue