src/cpuinfo/SDL_cpuinfo.c
changeset 3314 8b01b0648f01
parent 3248 cde30895105d
child 3321 714a352c8869
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 09:57:32 2009 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 10:04:38 2009 +0000
     1.3 @@ -166,7 +166,7 @@
     1.4  "        movl    %%edi,%%ebx\n"
     1.5  	: "=m" (features)
     1.6  	:
     1.7 -	: "%eax", "%ecx", "%edx", "%edi"
     1.8 +	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
     1.9  	);
    1.10  #elif defined(__GNUC__) && defined(__x86_64__)
    1.11  	__asm__ (
    1.12 @@ -183,7 +183,7 @@
    1.13  "        movq    %%rdi,%%rbx\n"
    1.14  	: "=m" (features)
    1.15  	:
    1.16 -	: "%rax", "%rcx", "%rdx", "%rdi"
    1.17 +	: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
    1.18  	);
    1.19  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.20  	__asm {
    1.21 @@ -238,7 +238,7 @@
    1.22  "        movl    %%edi,%%ebx\n"
    1.23  	: "=m" (features)
    1.24  	:
    1.25 -	: "%eax", "%ecx", "%edx", "%edi"
    1.26 +	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
    1.27  	);
    1.28  #elif defined(__GNUC__) && defined (__x86_64__)
    1.29  	__asm__ (
    1.30 @@ -254,7 +254,7 @@
    1.31  "        movq    %%rdi,%%rbx\n"
    1.32  	: "=m" (features)
    1.33  	:
    1.34 -	: "%rax", "%rcx", "%rdx", "%rdi"
    1.35 +	: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
    1.36  	);
    1.37  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.38  	__asm {