[svn] / trunk / xvidcore / src / utils / x86_asm / cpuid.asm Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/utils/x86_asm/cpuid.asm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1382, Mon Mar 22 22:36:25 2004 UTC revision 1519, Sat Jul 24 11:46:08 2004 UTC
# Line 19  Line 19 
19  ; *  along with this program ; if not, write to the Free Software  ; *  along with this program ; if not, write to the Free Software
20  ; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  ; *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  ; *  ; *
22  ; * $Id: cpuid.asm,v 1.5 2004-03-22 22:36:24 edgomez Exp $  ; * $Id: cpuid.asm,v 1.7 2004-07-24 11:46:08 edgomez Exp $
23  ; *  ; *
24  ; ***************************************************************************/  ; ***************************************************************************/
25    
# Line 62  Line 62 
62    
63  ALIGN 32  ALIGN 32
64  %ifdef FORMAT_COFF  %ifdef FORMAT_COFF
65  SECTION .rodata data  SECTION .rodata
66  %else  %else
67  SECTION .rodata data align=16  SECTION .rodata align=16
68  %endif  %endif
69    
70  vendorAMD:  vendorAMD:
# Line 99  Line 99 
99    push edi    push edi
100    push ebp    push ebp
101    
102      sub esp, 12             ; Stack space for vendor name
103    
104    xor ebp, ebp    xor ebp, ebp
105    
106          ; CPUID command ?          ; CPUID command ?
# Line 118  Line 120 
120          ; get vendor string, used later          ; get vendor string, used later
121    xor eax, eax    xor eax, eax
122    cpuid    cpuid
123    mov [esp-12], ebx       ; vendor string    mov [esp], ebx       ; vendor string
124    mov [esp-12+4], edx    mov [esp+4], edx
125    mov [esp-12+8], ecx    mov [esp+8], ecx
126    test eax, eax    test eax, eax
127    
128    jz near .cpu_quit    jz near .cpu_quit
# Line 151  Line 153 
153    
154   ; AMD cpu ?   ; AMD cpu ?
155    lea esi, [vendorAMD]    lea esi, [vendorAMD]
156    lea edi, [esp-12]    lea edi, [esp]
157    mov ecx, 12    mov ecx, 12
158    cld    cld
159    repe cmpsb    repe cmpsb
# Line 170  Line 172 
172    
173    mov eax, ebp    mov eax, ebp
174    
175      add esp, 12
176    
177    pop ebp    pop ebp
178    pop edi    pop edi
179    pop esi    pop esi

Legend:
Removed from v.1382  
changed lines
  Added in v.1519

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4